0.0.4 • Published 3 years ago
@phoenix-plugin-registry/php-debugger v0.0.4
PHP Debugger for Brackets
This is a debugger for the PHP language currently using xdebug.
Features
- Breakpoints
- Local variables
- Super globals
- Code evaulation in context
Installation
- 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.
Example of xdebug config in php.ini
[xdebug]
zend_extension=<path to so/dll>
xdebug.idekey=idekey
xdebug.remote_enable=true
xdebug.remote_port=9000
Usage
- 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.
Settings
php-debugger.port
Enables you to change the default to something custom.
"php-debugger.port": 9001
php-debugger.idekey
Enables you to change the default idekey to something custom.
"php-debugger.idekey": "xdebug"
php-debugger.debug
Enables you go get more verbose debugging output.
"php-debugger.debug": true
Screenshots
Active debugging session showing local variables and some code evaluation
0.0.4
3 years ago