<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 'Segoe UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>That doesn't work. I put a debugger statement in nsSearchService.js, for example. Then I launch with --jsdebugger flag. It wasn't able to pause. </div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="FONT-SIZE: 10pt; FONT-FAMILY: verdana; MARGIN: 10px">
<div>Rest Regards,</div>
<div>Shanfeng Cheng</div><div>sfcheng@gmail.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:bgrinstead@mozilla.com">Brian Grinstead</a></div><div><b>Date:</b> 2018-07-12 07:13</div><div><b>To:</b> <a href="mailto:sfcheng@gmail.com">sfcheng@gmail.com</a></div><div><b>CC:</b> <a href="mailto:firefox-dev@mozilla.org">firefox-dev</a></div><div><b>Subject:</b> Re: How to step into firefox initialization javascript?</div></div></div><div><div>If you put a `debugger;` statement into code and then run with the `-jsdebugger` flag it should pause and let you step into the script.</div>
<div> </div>
<div>Brian</div>
<div> </div>
<div>> On Jul 12, 2018, at 7:07 AM, sfcheng@gmail.com wrote:</div>
<div>> </div>
<div>> Hello, everyone,</div>
<div>> </div>
<div>> I know we can use the browser toolbox in firefox to debug and trace browser-level javascript. However, in order to do that, I would have to fire up firefox first and then open browser toolbox from the menu. Then set a breakpoint in the file that I want to debug. However, some of the scripts are run during browser initialization. It would be too late to debug such initialization script using the browser toolbox. Is there anyway to step into such script?</div>
<div>> </div>
<div>> Thanks a lot for help!</div>
<div>> </div>
<div>> </div>
<div>> Rest Regards,</div>
<div>> Shanfeng Cheng</div>
<div>> sfcheng@gmail.com</div>
<div>> _______________________________________________</div>
<div>> firefox-dev mailing list</div>
<div>> firefox-dev@mozilla.org</div>
<div>> https://mail.mozilla.org/listinfo/firefox-dev</div>
<div> </div>
</div></blockquote>
</body></html>