1. When starting a debugging session, a set of debugger windows opens below the main editor window. In the debugger window, it keeps prompting “Waiting for connection” (netbeans-xdebug), as shown in Figure 1;

2. Analysis reveals the “Debugging” tab in the “PHP” options, which shows the Session ID. This is an arbitrary name for the debugging session. By default, it is netbeans-xdebug, as shown in Figure 2;

3. Check the xdebug.idekey property in php.ini, which is currently set to: PPB07$, as shown in Figure 3;

4. Set the xdebug.idekey property value in php.ini to: netbeans-xdebug, as shown in Figures 4 and 5;


5. When starting the debugging session again, the debugger window still keeps prompting “Waiting for connection” (netbeans-xdebug), as shown in Figure 6;

6. In the General tab of the “PHP” options, reset the PHP 5 interpreter, as shown in Figures 7 and 8;


7. When starting the debugging session again, the debugger window still keeps prompting “Waiting for connection” (netbeans-xdebug);
8. Set the xdebug.remote_enable property value in php.ini to: 1, as shown in Figure 9;

9. When starting the debugging session again, the debugger window still keeps prompting “Waiting for connection” (netbeans-xdebug);
10. Set the xdebug.remote_host property value in php.ini to: 127.0.0.1, as shown in Figure 10;

11. When starting the debugging session again, the debugger window now shows that it is running, as shown in Figure 11;

Note: The xdebug.idekey in php.ini can be commented out, and it will still run normally. However, if you choose to set it (such as in certain remote debugging scenarios), you must pay attention to this value;
