<p>I'm writing javascript code that is read in as a string and executed via eval() by a firefox extension. Firebug does "see" my script so I am not able to use breakpoints, see objects, etc. </p>

<p>I am currently using Firefox's error console which I'm starting to find limiting. What are my other options? Ideally, I would be able to use Firebug or something similar to it. How do people generally debug Greasemonkey scripts?</p>

<p>I've tried using Lint and other validators, but my script uses a lot of objects and functions provided by the extension environment, making of a lot of the errors reported irrelevant. Also, the output tends to be too nitpicky (focusing of spacing issues, etc). </p>

As far as I know, Firebug supports
```
eval()
```
debugging since 1.1, specifically for GreaseMonkey, you can use
GM_log
for basic logging, you might find useful this tools also:
Web Developer Extension
JSUnit
JSLint