- I am using Wamp server to run Apache and PHP.
- I am using NetBeans PHP as my IDE.
I would like to turn on the debugger, I imagined that either:
- Apache and PHP would need to know that I want them to tell my NetBeans that they have loaded a page and thus it should be listening for when it can fire a breakpoints
- That Netbeans needs to tell Apache and PHP that it has a breakpoint it should pause on.
I have been changing various bits and bobs trying to get the debugger to work in NetBeans All of which seems to have been in the php.ini file:
zend_extension = "c:/wamp/bin/php/php5.4.16/zend_ext/php_xdebug-2.2.3-5.4-vc9.dll"
[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
I really do not understand what the above is doing but I've been following tutorial after tutorial and getting no where.
What ends up happening is that I press the run button in Netbeans, the debugger part keeps saying connecting, while my browser has already loaded the page and presented everything, ignoring the fact I wanted to break at a point.
Any ideas?