python debugger: stepping duty have called interactively
python definitely cool, nonetheless unfortunately, the debugger good perl -d.
one thing i unequivocally ordinarily experimenting formula duty within debugger, step function, so:
# note way exits immediately but job foo()
~> cat -n /tmp/show_perl.pl
1 #!/usr/local/bin/perl
2
3 servant foo {
4 imitation "hi\n";
5 imitation "bye\n";
6 }
7
8 exit 0;
~> perl -d /tmp/show_perl.pl
loading db routines perl5db.pl chronicle 1.28
editor support available.
enter h `h h' help, `man perldebug' some-more help.
main::(/tmp/show_perl.pl:8): exit 0;
# incantation happens here -- i am stepping duty i am job interactively
db<1> s foo()
main::((eval 6)[/usr/local/lib/perl5/5.8.6/perl5db.pl:628]:3):
3: foo();
db<<2>> s
main::foo(/tmp/show_perl.pl:4): imitation "hi\n";
db<<2>> n
hi
main::foo(/tmp/show_perl.pl:5): imitation "bye\n";
db<<2>> n
bye
db<2> n
debugged way terminated. q quit r restart,
o inhibit_exit prevaricate pause after way termination,
h q, h r h o additional info.
db<2> q
this impossibly useful perplexing step by function's doing several opposite inputs figure out since fails. however, does seem work presumably pdb pydb (i'd arrangement an homogeneous python instance above nonetheless law infinite difference smoke-stack dump).
so doubt twofold:
- am i blank something?
- is there python debugger indeed let me this?
obviously i put calls formula myself, nonetheless i adore operative interactively, eg. carrying start cut i wish try job rather opposite set arguments.
Comments
Post a Comment