
On Wednesday, May 12, 2004 2:04 AM
Tyler Hepworth
I am making some modifications and need to get some debugging messages from it. I have found it easiest to just place "die" statements in the scripts and print the results to my web browser, but now that I have switched to linux, the scripts will no longer "die". Is there a way to enable this functionality? Or is there a better method available for debugging?
Depends. 'die' should work in most cases, but isn't that nice. Have a look into the various pieces of code of the OTRS system - you'll get an idea on how we manage Debugging. In general, you may set a Config.pm parameter therefore: $Self->{Debug}. Set it to 1 or 9 - some modules spit out more info, when this is set to a higher value. In most case, a value of 1 were enough. Google knows a bunch about "Perl Debugging", for example this article: http://www.linuxjournal.com/article.php?sid=2484 hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388