While I have not used this on XP, when I use ptkdb from Linux, or even from Win98 or Win2K when I was using them, I would not put the '-d:ptkdb' in the shebang line, but instead would launch the program from a command-line using the option, such as: perl -d:ptkdb testscript.cgi

I was not aware that it could be used in the way you are attempting. Might try it that way and see if it helps any.

Update: I went and looked at the documentation for Devel::ptkdb, and it had a BEGIN block that needed to be added when debugging CGIs. That may also be part of the issue. (The BEGIN block can be found in the documentation at the link for the module-I did not include it herein because I felt that documentation would be more current, and to prevent the possibility I might miscopy the information.)

Update: Might suggest setting the DISPLAY to ':0.0' and see if that makes a difference. I recall using Tk on Win* before, and it did not need an X session, but I can't recall if at the time I had to set the value for DISPLAY or not when I was working with that.

Update: I am glad you were able to find a solution to your issue. There is nothing bad in asking a question in good faith, for even answers in the negative at least prune away paths that do not have to be explored further, making reaching the solution that much quicker. As an instructor of mine was once fond of repeating, the only stupid question is the one everyone wants to know but is afraid to ask, which comes up later to bite you....


In reply to Re: Devel::ptkdb, CGI script, Apache, WinXP -- why won't it work? by atcroft
in thread Devel::ptkdb, CGI script, Apache, WinXP -- why won't it work? by dpmott

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.