Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

$/ breaks debugger

by Anonymous Monk
on Nov 18, 2014 at 09:11 UTC ( [id://1107549]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1107549]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-29 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found