in reply to Re: perl debug options file
in thread perl debug options file

Great. Many thanks to you both!

update: hmm - not so fast alan

unfortunately 'source' doesn't seem to be supported by our version of perl (version 5.005_03 built for MSWin32-x86-object) ... will get newer perl to try

and using the .perldb example doesn't print "Reading ~/.perldb options" ... maybe will be fixed by newer perl?
(or perhaps .perldb should be in a different directory than the current working dir? will investigate, though 'perldebguts' isn't found by perldoc on my system either) ... onward!

Replies are listed 'Best First'.
Re^3: perl debug options file
by osunderdog (Deacon) on Oct 26, 2004 at 18:52 UTC

    Well, you didn't tell me it was windows! ;) Details details. I don't think it's a perl version issue. Although I have slept since then, I do remember running this on perl 5.005.

    I think the debugger is having trouble finding the .perldb file. I tried putting the .perldb file in %HOME% with no luck.

    An alternative suggestion for you. If you are in a long debugging session (debug, tweak, debug...), you could add $DB:single=1 at locations in your script that you're trying to debug. Then when you run perl with the -d option, the script will break right after the $DB:single=1 line.

    Just an alternative. I don't have an answer for the .perldb issue. *sorry*


    "Look, Shiny Things!" is not a better business strategy than compatibility and reuse.


    OSUnderdog
      > Well, you didn't tell me it was windows! ;)
      sorry, I realised details were missing right after posting

      $DB:single=1 will do fine (yes, I'm in a tweaking loop)

      thanks again

      > Well, you didn't tell me it was windows! ;)
      sorry, I realised details were missing right after posting

      DB::single=1 will do fine - thanks for the tip (yes, I'm in a tweaking loop)

      thanks again