Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm using Devel::ebug to automate some code analysis of mine.
However if I change the value of $/, the debugger simply stops accepting commands, both in console mode as well as using the library in-code.

Setting it to local doesn't work either, neither does replacing it with some other applicable value as a work-around - it simply stops :/

Any ideas? Or should I consider switching to a different module?

Replies are listed 'Best First'.
Re: $/ breaks debugger
by Corion (Patriarch) on Nov 18, 2014 at 09:20 UTC

    It seems that Devel::ebug talks over a socket and the socket code is (line 141 in Backend.pm):

    my $data = $context->{socket}->getline;

    This is a normal IO::Socket::INET, so likely, adding the proper local $/= "\n"; before that line will fix your issue. You should report this as a bug in Devel::ebug.

      That fixes it, thank you very much :)
      You should report this as a bug in Devel::ebug.
      Will do