Skip to content

feat: Add DBGP emulator#37

Open
carlos-granados wants to merge 1 commit intophp-debugger:mainfrom
carlos-granados:feature/add-dbgp-emulator
Open

feat: Add DBGP emulator#37
carlos-granados wants to merge 1 commit intophp-debugger:mainfrom
carlos-granados:feature/add-dbgp-emulator

Conversation

@carlos-granados
Copy link
Copy Markdown
Collaborator

Xdebug has the functionality needed to emulate a DBGP client defined in the DebugClient class but this was only used in tests.

In this PR we use this existing functionality to create a DBGP client emulator which can be run as a daemon, listening for incoming connections. It accepts an argument pointing to a file which contains a list of DBGP commands. When it accepts a connection, it will send these commands to the running php debugger and record the conversation.

This tool can be useful for two thing:

  • Debugging the php debugger by emulating a connection with a client
  • Testing the performance of the debugger when connection to a client

@carlos-granados carlos-granados requested a review from pronskiy April 4, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant