This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Script Debugging: Logs?

Tags: None
(comma "," separated)
trippinnik
Registered Member
Posts
12
Karma
0

Script Debugging: Logs?

Fri Mar 27, 2009 4:28 am
I can't seem to find where the logs are for script errors.  I'm just starting trying to write my own script and of course I get an error: "There are exceptions caught in the script. Please refer to the log!" Not sure where the log is.
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Script Debugging: Logs?

Fri Mar 27, 2009 8:59 am
Start Amarok from the shell like this: "amarok --debug".


--
Mark Kretschmann - Amarok Developer
nhn
KDE Developer
Posts
114
Karma
0
OS

Re: Script Debugging: Logs?

Fri Mar 27, 2009 9:20 am
Also note that qtscript is not too fond of outputting the error messages from exceptions on its own.

Adding

try {
    YOUR_STUFF_HERE
catch( e ) {
    print( e );
}

Will make the script print out any exceptions to the Amarok debug output in the terminal.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]