renatocassino / dephpugger

Php Debugger to run in terminal to debug your code easily.
MIT License
200 stars 14 forks source link

Support for XDebug 3 #53

Open Integralist opened 3 years ago

Integralist commented 3 years ago

With latest version of XDebug you'll find some properties have been updated/renamed.

This has meant (until there is a newer version of dephpugger that supports XDebug 3) I had to manually update vendor/tacnoman/dephpugger/src/Dephpug/Console/CliCommand.php with the renamed fields (see https://xdebug.org/docs/errors#CFG-C-CHANGED and the linked upgrade guide for details).

The summary of those changes being:

- $command = "{$configVar} {$phpPath} -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port={$debuggerPort} -dxdebug.remote_host=127.0.0.1 {$phpFile}";
+ $command = "{$configVar} {$phpPath} -dxdebug.mode=debug -dxdebug.start_with_request=trigger -dxdebug.client_port={$debuggerPort} -dxdebug.client_host=127.0.0.1 {$phpFile}";
mrkskwsnck commented 3 years ago

Thankx fo that hint! You saved my day <3 as I was now trying dephpugger for the first time.