in reply to Re: Perl Debugger degrades performance when reading large spreadsheet
in thread Perl Debugger degrades performance when reading large spreadsheet

Thanks Rolf! With some further searching I found a module called Enbugger::perl5db
It looks like it might be able to turn off/on the debugger
Actually it turns on the debugger, but can't be used to turn it off..
But that may be all I need :)

  • Comment on Re^2: Perl Debugger degrades performance when reading large spreadsheet

Replies are listed 'Best First'.
Re^3: Perl Debugger degrades performance when reading large spreadsheet
by LanX (Saint) on Aug 31, 2021 at 12:06 UTC

      I would do that too if I had any idea what you mean :)

      Could you give me an example of what you mean by modifying the callback?
      I like the idea of altering DB::sub
      Since I have not clue what I'm doing, I tried deleting all the spreadsheet subs using:

      map {delete $DB::sub{$_}} grep {/spreadsheet/i} keys %DB::sub
      The first time I ran after that, it saved me 10 seconds,
      but that wasn't repeatable, and I'm pretty sure it had no effect at all.
      because its way after all the subroutine calls get replaced with the call to &DB::sub(args)

      I'm going to punt on this because I think I've already wasted more time than I'll ever recover :)
      But thanks for your help!

        I was talking about &DB::sub() the function

        the debugger will call it for every function call and theoretically it should be possible to temporarily change some flags only for your spreadsheet calls.

        see also the flags determining if &DB::DB() is called or not.

        Anyway I concur with Corion that minimizing the the actual sheets for debugging is the better approach.

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery