Article · Wikipedia archive · Last revised Jun 3, 2026

DBGp

Common DeBugGer Protocol as used by Xdebug and potentially other implementations. DBGp is a simple protocol for use with language tools and engines for the purpose of debugging applications. The protocol provides a means of communication between a debugger engine and a debugger IDE.

Last revised
Jun 3, 2026
Read time
≈ 1 min
Length
182 w
Citations
5
Source

Common DeBugGer Protocol as used by Xdebug1 and potentially other implementations. DBGp is a simple protocol for use with language tools and engines for the purpose of debugging applications.2 The protocol provides a means of communication between a debugger engine (scripting engine, Virtual Machine, etc.) and a debugger IDE.

Criticisms

DBGp has not received widespread adoption as a server protocol. Most implementations are client-side so that IDEs may be compatible specifically with Xdebug, which remains popular.

Criticisms have included:34

  • Performance (DBGp is a text-mode protocol)
  • Security (DBGp has a complex connection mechanism that could lead to buggy vulnerable implementations)
  • Generality (DBGp is designed to be compatible with multiple programming languages rather than being optimized for PHP)

A primary author of the DBGp specification has defended the design.5

References

References

  1. Rethans, Derick (10 March 2022). "Main contributor to DBGp". github.
  2. "Xdebug: Documentation for DBGp". Xdebug.
  3. "Support DBGP protocol for easy integration with IDEs and tools · Issue #105 · krakjoe/phpdbg". GitHub. Retrieved 2016-09-25.
  4. "Guy Harpaz Blog: PHP IDE Debug Protocol". guyharpaz.blogspot.hu. Retrieved 2016-09-25.
  5. Rethans, Derick. "Debugging Protocol Shoot-out — Derick Rethans". derickrethans.nl. Retrieved 2016-09-25.