Debugging Greasemonkey scripts

Talk about add-ons and extension development.
Post Reply
pjnlsn
Posts: 7
Joined: April 25th, 2015, 2:41 am

Debugging Greasemonkey scripts

Post by pjnlsn »

When my greasemonkey script fails, it stops executing, but swallows the error without printing to the console. At the moment, i'm reduced to littering the code with console.log() and guessing where the error happened.

This prints "before" but not "after":

Code: Select all

console.log("before");

// swallowed
syntax( error[;

console.log("after");
How can I get greasemonkey scripts to show their errors in the console like normal?



Using FF 42.0 and Greasemonkey 3.5
pjnlsn
Posts: 7
Joined: April 25th, 2015, 2:41 am

Re: Debugging Greasemonkey scripts

Post by pjnlsn »

Gah. I was being silly. I had to look at the Browser Console not the Web Console, if anyone is curious. (ctrl + shift + j)
Post Reply