1. Download the Netbeans installer apache-NetBeans14.exe, with pre-packaged JDK18 from Codelerityhttps://www.codelerity.com/netbeans/
2. Run the installer and configure for previously installed NGinX PHP (see Knowledge Base article).
3. Start a new PHP project
File>New Project>PHP>PHP Application
Click Next
Click Finish
4. Configure Netbeans
5. Create a new PHP source file named index.php and Run to test Netbeans is configured
<!doctype html><head> <meta charset="UTF-8"> <title>Hello PHP</title> <style> h1{ color:#6699CC; font-family: Tahoma, Verdana, Segoe, sans-serif; font-size:18px }</style></head><?php $version_string = phpversion(); echo "<h1>Hello PHP $version_string World<h1>";
6. Download the appropriate XDebug dll from https://xdebug.org/download
7. Check the php extensions directory is set correctly in php.ini
; Directory in which the loadable extensions (modules) reside.;extension_dir = "ext"extension_dir = "c:\dev\php\ext"
8. Enable XDebug by adding the following section to php.ini
[XDebug2]zend_extension=c:\dev\php\ext\php_xdebug.dllxdebug.remote_enable=onxdebug.remote_handler=dbgpxdebug.client_port=localhostxdebug.remote_port=9003xdebug.idekey="netbeans-xdebug"
9. In Netbeans add a breakpoint to the index.php file and use the Debug button to check XDebug is correctly configured
<check php/ext path is correct in php.ini>
<check xdebug module activein phpinfo>
« Go back
Powered by Help Desk Software HESK, in partnership with SysAid Technologies