Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: perl debug

by pemungkah (Priest)
on Jan 23, 2014 at 06:21 UTC ( [id://1071698]=note: print w/replies, xml ) Need Help??


in reply to perl debug

The trick is to return from the INIT routine, which will put you at the first executable line of your test. In the debugger, that's an r commamd. Maybe "step out" in Eclipse?

You should then set any breakpoints you want in the specific test subs then c to continue (or whatever Eclipse's equivalent of "run from here to the next breakpoint" is). Otherwise be prepared to step your way through a lot of code you don't care about until you reach the call that actually executes your code somewhere in the bowels of Test::Class.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1071698]
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: (3)
As of 2024-03-19 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found