13.13. ptkdb

The ptkdb debugger (see Chapter 7) has a way for you to debug CGI programs as they run on the server, which is as close as it comes to having your cake and eating it too. The following conditions must be met:

  • The server has to have Tk, PerlTk, and ptkdb installed.

  • The debug client has to be running an X Window System server. This machine doesn't have to be the same as the one running the browser making the request, however.

  • The environment variable PTKDB_DISPLAY on the server has to be set to the X display of the debug client.

  • You have to be able to accomplish your debugging without interrupting the flow of output long enough for the browser to time out. After that time, you may be able to continue debugging the program, but you won't ...

Get Perl Debugged now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.