You can now open the browser debugger from the commandline (now also for mochitests!)
tanvi at mozilla.com
Fri Oct 25 19:50:45 UTC 2013
This is great and will be very helpful when writing and debugging mochitests! I have been waiting for something like this. Thanks Gijs!
On Oct 25, 2013, at 2:55 AM, Gijs Kruitbosch <gijskruitbosch at gmail.com> wrote:
> Recently landed on m-c (should work on today's upcoming nightly): a --jsdebugger commandline flag! So opening firefox with --jsdebugger will immediately open the Browser Debugger.
> What's more, a few minutes ago support landed on m-c for using this flag with mochitest-(plain|browser|chrome) for the same.
> That means you can now do something like:
> ./mach mochitest-browser browser/base/content/test/general/browser_overflowScroll.js --jsdebugger
> and it'll start the browser, open the debugger, and wait with running the test(s) until you hit the button on the mochitest UI (e.g. after you've set breakpoints etc.)
> This should ease tracking down the cause of intermittent failures in these tests. Happy debugging!
> ~ Gijs
> PS: details in https://bugzilla.mozilla.org/show_bug.cgi?id=895471 if you're interested
> firefox-dev mailing list
> firefox-dev at mozilla.org
More information about the firefox-dev