Hello,
This post shows you how to create a new ZnetDK project in NetBeans, to develop and debug your custom application.
Prerequisites
- NetBeans 8 is installed locally on your personal computer (NetBeans 8.0.2 is used in this post),
- A WAMP or LAMP package is installed locally on your personal computer (EasyPHP 14.1 is used in this post),
- You've downloaded ZnetDK 1.0 on your personal computer.
Procedure
1. Copy in your NetBeansProjects directory the content of the znetdk-1.0.zip archive: for example, in "C:\Users\MyName\Documents\NetBeansProjects\znetdk".
2. Launch NetBeans and select in the main menu the 'File | New Project...' item.
3. In step 1, choose PHP Application with Existing Sources then click the Next button.
4. In step 2, clicking on the Browse button, select the "C:\Users\MyName\Documents\NetBeansProjects\znetdk" directory where you've copied ZnetDK 1.0, then click on the Next button.
5. In step 3, choose for Run As: the option "Local Web Site", check the boxes "Copy files from Sources Folder to another location", select your WAMP web publishing directory for the Copy to Folder: field. Finally, check the "Copy files on project open" and click on the Finish button.
6. Your project is now created as shown below:
7. Now, add a breakpoint to the line of the PHP script of your choice, then click on the Debug Project button (Ctrl + F5) to start a debug session.
Pascal MARTINEZ