Questions tagged [perldb]

Perl's built-in console-mode debugger

8 questions
2
votes
1 answer

Set breakpoint from .perldb init file

I am experimenting with the .perldb rc file and trying to set a breakpoint. Here is a small sample script that I use for testing (p.pl): use feature qw(say); use strict; use warnings; say "Line 5"; say "Line 6"; say "Line 7"; Then, I created the…
Håkon Hægland
  • 39,012
  • 21
  • 81
  • 174
2
votes
2 answers

Perl debugger does not work with arrow keys under Perlbrew

I'd like arrow keys to work for command history in perl debugger. This solution looks good, so since I'm using ubuntu, I tried sudo aptitude install libterm-readline-gnu-perl But, I still get the ^[[A and ^[[B echoed back in the perl debugger…
Randall
  • 2,859
  • 1
  • 21
  • 24
1
vote
1 answer

how to run perl debugger as a plain STDIN/STDOUT REPL without readline/decorations/tty manipulation etc.?

I'd like to do something in bash like: coproc myPerlDebuggerServer { perl -d -e 42; } then talk to that co-process via shell functions to get my own interactive interface to the debugger. Of course this doesn't work as is because perl -d -e 42…
Britton Kerin
  • 427
  • 4
  • 9
1
vote
0 answers

running oracle producer with perl

I used to run normal queries with Perl like (select & insert & update & delete ) with skipping insert semicolon at the end of the query and its working with me, but currently I have to run oracle prouder but as you know the producre sometimes…
mashro3ak
  • 93
  • 6
1
vote
0 answers

Perl program to connect oracle database from different system

I have a perl program which connects to oracle database and fetch details,Which is perfectly working from same host(cu394.cloud.net) my $dbh = DBI->connect( "dbi:Oracle:host=cu394.cloud.net;sid=ora", "ctfuser238", "ctfuser238" , {'RaiseError' =>…
sathishkumar
  • 337
  • 1
  • 3
  • 10
0
votes
1 answer

How to set breakpoint in a required module from a .perldb init file?

A follow-up question to Set breakpoint from .perldb init file. I am trying to set a breakpoint in a module that is loaded at run time. For testing purposes I have created the following files: /home/hakon/test/perl/perldb/p.pl: use feature…
Håkon Hægland
  • 39,012
  • 21
  • 81
  • 174
0
votes
1 answer

Perl debugger actions in -pie one-liner mode?

Consider this: cat > mytestfile.txt <<'EOF' "'iceberg'" "'ice cliff'" "'ice field'" "'inlet'" "'island'" "'islet'" "'isthmus'" EOF perl -dpi -e 's/ice/dice/' mytestfile.txt When the debugger runs, I try to add an action…
sdbbs
  • 4,270
  • 5
  • 32
  • 87
0
votes
1 answer

continue command ignores breakpoints

I'm getting errors using CPAN and, as output is rather unhelpful, resorted to debugging this. $ perl -d /usr/bin/cpan CPAN Loading DB routines from perl5db.pl version 1.33 <...> main::(/usr/bin/cpan:2): eval 'exec /usr/bin/perl -S $0…
ivan_pozdeev
  • 33,874
  • 19
  • 107
  • 152