tags:

views:

458

answers:

1

I am trying to get a Greasemonkey script to run on a page. But it does not.

How do you debug scripts?

What are the smallest possible baby-steps to start a new Greasemonkey script?

+1  A: 

you can write logs everywhere in your scripts to get better traces of what if being done in them:

GM_log("Hello, World!");

http://wiki.greasespot.net/GM%5Flog

More info: http://wiki.greasespot.net/Greasemonkey%5FManual%3AOther%5FUseful%5FTools#JavaScript%5FConsole

Another tip: Take a look at the whole greasemonkey wiki. They have a lot of good stuff in there: http://wiki.greasespot.net/Main%5FPage

Santi
Thanks but at the time I needed this, my script was not even running -- could not even run statements like `alert("hello");`. So what i hope is to build a checklist with steps you can check if your script is not even running.
Jesper Rønn-Jensen
... Useful tip, though!
Jesper Rønn-Jensen