Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Best way to debug in MVCby eXile (Priest) |
on Jun 02, 2005 at 05:28 UTC ( [id://462762]=note: print w/replies, xml ) | Need Help?? |
I'm afraid the 'best way' to debug anything depends on what you are debugging, what the exact problem is you are debugging, and your debugging preferences. So I'm afraid I can't give you the 'best way'.
I sometimes use a debug switch in my code at critical points like: This way you can turn off/on debugging by (un)setting the master-switch $DEBUG, and even use different $DEBUG values for different types of debugging, the sky is the limit. If you want to see the call tree of your program you could use Devel::Dprof. If you want to see the content of complex structures, you could use Data::Dumper. Some people really like the perl debugger, you can do some cool tricks with it, see the perldebug docs.
In Section
Seekers of Perl Wisdom
|
|