2

I have a greasemonkey script running on Firefox and its in an infinite loop. I can't figure out where loop is at because I am unable to have a debug window that is not tied to FireFox.

How can I set-up firefox so I can monitor the console log even if firefox dies on me. Currently I am using firebug, it dies with FireFox instant.

Thank you

asked Feb 21, 2013 at 0:59
4
  • 1
    have you tried using Chrome console to debug the application? Commented Feb 21, 2013 at 1:01
  • 1
    Set a breakpoint instead of trying to log Commented Feb 21, 2013 at 1:08
  • 1
    Unfortunately, Greasemonkey does not play nice with Firebug. You can, with some difficulty, set breakpoints and watch expressions. However, it will only honor the first breakpoint and ignores everything as soon as you try to continue or step. You still have to develop and debug the old-fashioned way. Commented Feb 21, 2013 at 2:01
  • lol I didn't realise you can set breakpoints in GM scripts. Total Newbie here. XD Thanks that's the perfect pain in the arse solution. But it works :) Commented Feb 21, 2013 at 9:23

2 Answers 2

1

Maybe using ConsoleExport Firebug extension can solve your problem. It has autoexport feature and maybe before crash it can dump console logs to a file. For more information:
http://www.softwareishard.com/blog/consoleexport/

answered Feb 21, 2013 at 1:06
Sign up to request clarification or add additional context in comments.

Comments

0

Answered above by bfavaretto and Brock Adams :)

It seems you can set breakpoints in GM scripts using Firebug. I didn't know this.

answered Feb 21, 2013 at 9:25

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.