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
-
1have you tried using Chrome console to debug the application?Victor– Victor2013年02月21日 01:01:14 +00:00Commented Feb 21, 2013 at 1:01
-
1Set a breakpoint instead of trying to logbfavaretto– bfavaretto2013年02月21日 01:08:41 +00:00Commented Feb 21, 2013 at 1:08
-
1Unfortunately, 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.Brock Adams– Brock Adams2013年02月21日 02:01:53 +00:00Commented 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 :)C3PO– C3PO2013年02月21日 09:23:18 +00:00Commented Feb 21, 2013 at 9:23
2 Answers 2
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/
Comments
Answered above by bfavaretto and Brock Adams :)
It seems you can set breakpoints in GM scripts using Firebug. I didn't know this.
Comments
Explore related questions
See similar questions with these tags.