Xdebug remote: can I execute PHP code or change variables?

Is it possible to execute arbitrary PHP code or at least change the value of variables during a breakpoint using xdebug remote debugging? I am using the Sublime Text 2 SublimeXDebug plugin .

+4
source share
1 answer

Xdebug supports changing variables through the DBGp protocol. It can also execute (eval) code. Some IDEs, such as Komodo and PhpStorm, allow you to change values โ€‹โ€‹through the IDE. It is very likely that others, such as SublimeXdebug, do not allow this.

Link to the property_set command of the DBGp command: http://www.xdebug.org/docs-dbgp.php#property-get-property-set-property-value The link for eval is located at: http://www.xdebug.org /docs-dbgp.php#eval

+6
source

Source: https://habr.com/ru/post/1487587/


All Articles