mrdavidlaing / pressupbox-development-boilerplate

Patterns and practices for teams to collaborating on WordPress projects
Other
1 stars 5 forks source link

Debugging! #2

Open mrdavidlaing opened 11 years ago

mrdavidlaing commented 11 years ago

Once you have your app running in the VM under HipHop, how can you attach a debugger (like Netbeans or MacGDBP ) to it?

mrdavidlaing commented 11 years ago

The spike-debugging branch enables Xdebug via the PHP cli webserver.

To use it you must have a DBGp client like:

Its worth noting that MacDGBp doesn't need to be able to access the source files to show stepping through the executing source code - i.e, the DGBp protocol clearly transmits the source code being executed.

Potentially cooler would be to have a browser based debugger that leverages the remote debugging capabilities of Webkit - see this video for an example

Implementing the DGBP protocol looks fairly simple, as the source from XDebugClient shows