Skip to content

Support for XDebug 3 #53

@Integralist

Description

@Integralist

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:

  • -dxdebug.remote_enable=1 -> -dxdebug.mode=debug
  • -dxdebug.remote_mode=req -> -dxdebug.start_with_request=trigger
  • -dxdebug.remote_port -> -dxdebug.client_port
  • -dxdebug.remote_host -> -dxdebug.client_host
- $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}";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions