This is a debugger for the PHP language currently using xdebug.
- Breakpoints
- Local variables
- Super globals
- Code evaulation in context
- Install xdebug
- Configure xdebug with idekey and port number see example below
- Install php-debugger in brackets.
- Configure the idekey and port config options if you changed them from the default.
[xdebug]
zend_extension=<path to so/dll>
xdebug.idekey=idekey
xdebug.remote_enable=true
xdebug.remote_port=9000
- Open a PHP project in Brackets
- Add a breakpoint to some file.
- Fire up a browser and add ?XDEBUG_SESSION_START=xdebug to the end of the page you want to debug.
- PHP Debugger should now halt on breakpoint.
- Step using the UI buttons or shortcuts F10 and F11.
Enables you to change the default to something custom.
"php-debugger.port": 9001
Enables you to change the default idekey to something custom.
"php-debugger.idekey": "xdebug"
Enables you go get more verbose debugging output.
"php-debugger.debug": true
Active debugging session showing local variables and some code evaluation