A debug session

A typical debug session starts by launching the Gubed client, then using the browser to browse to the Gubed scripts on the webserver and entering the url of the script to be debugged.

As seen on the image, the browser sends a HTTP request to the Gubed scripts with information of what is going to be debugged. The Gubed scripts then contacts the client which displays the source code of the script in question. Depending on user actions, the client will then tell the script to start executing, changing variables, etc.

When the script is done executing (or forced to quite premature by the user), the output generated by the script is displayed in the browser.