Thanks for the links. There is Interesting stuff there, if not exactly usable in my environment right now. But it's interesting for motivation and instruction.

Another customization I've made is this:

o pager="cat > ~/tmp/DBGout"

with a pre-prompt action set to:

{ |y

This constantly updates the file DBGout with a dump of the currently scoped local variables.

BBEdit watches all files for changes and reloads them automatically when needed (while keeping the scrolled position in the file), so I have that file open in another window which now keeps the current variable values updated in real time while the cursor runs with the trace in the Perl source window, both with Perl syntax colouring as needed.

That's already pretty useful and quite a bit more convenient for me than the command line alone, because my code is pretty large and complex and even just the local data can be extensive as well. That makes it difficult to keep track of in the Perl debugger on its own.

It's a bit sad that I cannot create more than one watch file that way, but I guess I'll have to patch pager parameters into the debugger for that, too, so I can have separate windows for locals, globals, stack trace and so on by pushing them to separate files on every step (it's interactive anyway, so performance is not a big issue yet).


In reply to Re^4: Perl Debugger: Is there a variable with the current source line number being traced? by Shoveler
in thread Update: homespun GUI Wrapper for the Perl Debugger with an auto-refreshing editor (BBEdit on Mac OS X) (was: Perl Debugger: Is there a variable with the current source line number being traced?) by Shoveler

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.