<div dir="ltr">This is very useful! Thank you for adding this!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 8, 2017 at 2:11 PM, Dave Townsend <span dir="ltr"><<a href="mailto:dtownsend@mozilla.com" target="_blank">dtownsend@mozilla.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is awesome, thanks for implementing this!<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Mar 8, 2017 at 11:09 AM, J. Ryan Stinnett <span dir="ltr"><<a href="mailto:jryans@gmail.com" target="_blank">jryans@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div>With bug 1275942 in Firefox 55, a new Firefox CLI option was added: `--wait-for-jsdebugger`. <br><br>Example usage:<br><br></div><div>1. Add "debugger;" to top of browser/base/content/browser.j<wbr>s<br></div>2. $ ./mach run --jsdebugger --wait-for-jsdebugger<br></div>3. Browser Toolbox opens, pausing Firefox startup at the added line<br><div><div><br>This triggers Firefox to wait until the debugger connects, which makes it possible to debug some Firefox startup JS code paths. (Some startup paths might run before the DevTools command line handler, so for the moment they won't pause. This could be improved in the future by moving the CLI handler earlier in startup.)<br><br></div><div>(If you're wondering why an extra flag was added, this mode makes the Browser Toolbox use a different default window in the Inspector, which might confuse people if it was the default.)<br><br></div><div>Let me know if it's useful and / or you see room for improvement.<span class="m_3480331026860758539HOEnZb"><font color="#888888"><br></font></span></div><span class="m_3480331026860758539HOEnZb"><font color="#888888"><div><br></div><div>- Ryan<br></div></font></span></div></div>
<br></div></div>______________________________<wbr>_________________<br>
firefox-dev mailing list<br>
<a href="mailto:firefox-dev@mozilla.org" target="_blank">firefox-dev@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/firefox-dev" rel="noreferrer" target="_blank">https://mail.mozilla.org/listi<wbr>nfo/firefox-dev</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
firefox-dev mailing list<br>
<a href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/firefox-dev" rel="noreferrer" target="_blank">https://mail.mozilla.org/<wbr>listinfo/firefox-dev</a><br>
<br></blockquote></div><br></div>