RE: [otrs] Script wont "die"

-----Original Message----- From: Robert Kehl [mailto:robert.kehl@otrs.de] Sent: Wednesday, May 12, 2004 12:16 AM To: User questions and discussions about OTRS. Subject: Re: [otrs] Script wont "die"
On Wednesday, May 12, 2004 2:04 AM Tyler Hepworth
wrote: 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
I had read through the mailing list and tried setting the builtin debug option in Config.pm as well. Nothing was working. (Yes I restarted apache after every change). Then, instead of doing "/etc/init.d/apache-perl restart" (using debian), I did "/etc/init.d/apache-perl stop" "/etc/init.d/apache-perl start". After that it worked. Appears that my webserver is picky and does not like the command "restart". Bah, stupid computers. :D Tyler
participants (1)
-
Tyler Hepworth