I'm attempting to get ActiveState Visual Perl configured and working for a couple of our windows developers who are going to have to maintain some of my codebase and want to do so in their usual environment. For some reason, I'm having difficulty with remote debugging. I think it is failing to load the proper version of perl5db.pl. To simplify things for testing, I'm currently using my local machine as both the remote and local host. I've started the debugger from within Visual Studio, and it has given me the dialog saying that it is listening on port 3000.

Here are the values for my perl5lib and perldb_opts environment variables:

PERL5LIB="C:\test"
PERLDB_OPTS="RemotePort=itd6m6tw11:3000 PrintRet=0"

I have placed a copy of ActiveState's version of perl5db.pl in C:\test.

When I run perl -d soaptest.pl, it gives a warning near the top that the option is unrecognized:

Invalid option `"RemotePort=itd6m6tw11:3000 PrintRet=0"'

This makes me think it's still loading the default version of perl5db.pl, so I tried forcing it to load the new version, e.g.

set PERL5DB="BEGIN { require 'C:\test\perl5db.pl' }"

Then if I try to debug soaptest.pl, I get this:

C:\test>perl -d soaptest.pl
No DB::DB routine defined at soaptest.pl line 5.

Have I missed something obvious, or is Activestate's documentation a bit weak on this point?


In reply to Remote debugging problem by robhuffstedtler

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.