mozilla

Compare Revisions

Debugging Mozilla with lldb

Change Revisions

Revision 73900:

Revision 73900 by jrmuizel on

Revision 359671:

Revision 359671 by Nickolay on

Title:
Debugging Mozilla with lldb
Debugging Mozilla with lldb
Slug:
Debugging_Mozilla_with_lldb
Debugging_Mozilla_with_lldb
Tags:
NeedsContent, "Developing Mozilla", Debugging
"NeedsContent", "Developing Mozilla", "Debugging"
Content:

Revision 73900
Revision 359671
nn7    <p>
8      See <a href="/en-US/docs/" title="/en-US/docs/">http://lldb
 >.llvm.org/index.html</a>
9    </p>
10    <h2>
11      Starting a debugging session
12    </h2>
13    <h3>
14      Attaching to an existing process
15    </h3>
tt25    <h3>
26      Running a new process
27    </h3>
28    <p>
29      To start Firefox under the debugger, run <code>lldb</code> 
 >followed by "--", followed by the command line you'd like to run,
 > like this:
30    </p>
31    <pre>
32$ lldb -- obj-ff-dbg/dist/Nightly.app/Contents/MacOS/firefox-bin 
 >-no-remote -profile /path/to/profile
33</pre>
34    <p>
35      Then set breakpoints you need and start the process:
36    </p>
37    <pre>
38(lldb) breakpoint set --name nsInProcessTabChildGlobal::InitTabCh
 >ildGlobal
39Breakpoint created: 1: name = 'nsInProcessTabChildGlobal::InitTab
 >ChildGlobal', locations = 0 (pending)
40WARNING:  Unable to resolve breakpoint to any actual locations.
41 
42(lldb) r
43Process 7602 launched: '/.../obj-ff-opt/dist/Nightly.app/Contents
 >/MacOS/firefox-bin' (x86_64)
441 location  added to breakpoint 1
45</pre>

Back to History