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.
![](https://lh3.googleusercontent.com/-UJL8uarbMfQ/VgflVbxIHdI/AAAAAAAAANA/6rHa6BZFBug/s400/Configure%2BZnetDK%2Bin%2BNetBeans%2B-%2Bstep1.png)
3. In step 1, choose PHP Application with Existing Sources then click the Next button.
![](https://lh3.googleusercontent.com/-e5I1dZFSo6I/Vgfll0MBjII/AAAAAAAAANI/FUUcjpISMCg/s400/Configure%2BZnetDK%2Bin%2BNetBeans%2B-%2Bstep2.png)
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.
![](https://lh3.googleusercontent.com/-QMuEYcO-SwI/Vgfpw7nS-mI/AAAAAAAAANg/lUzy8mTLq3w/s400/Configure%2BZnetDK%2Bin%2BNetBeans%2B-%2Bstep3.png)
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.
![](https://lh3.googleusercontent.com/-dZWGoAk4S00/VgfqRvFK_QI/AAAAAAAAANo/Vgl5PZaxDuM/s400/Configure%2BZnetDK%2Bin%2BNetBeans%2B-%2Bstep4.png)
6. Your project is now created as shown below:
![](https://lh3.googleusercontent.com/-l2HlOdW9I6g/VgftKw2PUrI/AAAAAAAAAN0/bPyTYc3AQZg/s400/Configure%2BZnetDK%2Bin%2BNetBeans%2B-%2Bstep5.png)
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.
![](https://lh3.googleusercontent.com/-QtARtTtWoYU/VgfuBzLqAII/AAAAAAAAAN8/UgG1RcLjrok/s400/Configure%2BZnetDK%2Bin%2BNetBeans%2B-%2Bstep6.png)
Pascal MARTINEZ