Compare Revisions

Debugging on Mac OS X

Revision 55350:

Revision 55350 by Sheppy on

Revision 492293:

Revision 492293 by Jonathan_Watt on

Title:
Debugging on Mac OS X
Debugging on Mac OS X
Slug:
Debugging_on_Mac_OS_X
Debugging_on_Mac_OS_X
Tags:
"Developing Mozilla", Debugging
"Developing Mozilla","Debugging"
Content:

Revision 55350
Revision 492293
nn10    <div class="warning">
11      <p>
12        LLDB warning: Xcode 5 only comes with lldb (gdb is gone).
 > The introduction and use of UNIFIED_SOURCES in the source starti
 >ng around November 2013 has broken the default LLDB configuration
 > so that it will not manage to resolve breakpoints in files that 
 >are build using UNIFIED_SOURCES (the breakpoints will be listed a
 >s "pending", and lldb will not stop at them). To fix this add the
 > following to your $HOME/.lldbinit file:
13      </p>
14      <pre class="eval">
15# Mozilla's use of UNIFIED_SOURCES to include multiple source fil
 >es into a
16# single compiled file breaks lldb breakpoint setting. This works
 > around that.
17# See http://lldb.llvm.org/troubleshooting.html for more.
18settings set target.inline-breakpoint-strategy always
19</pre>
20      <p>
21        Restart Xcode/lldb and restart your debugging session. If
 > that still doesn't fix things then try closing Xcode/lldb, doing
 > a clobber build, reopening Xcode/lldb, and restarting your debug
 >ging session.
22      </p>
23    </div>
n123      Pointer types aren't automatically dereferenced so you may n137      Pointer types aren't automatically dereferenced so you may 
>need to do that in the command. It will write out a fully expande>need to do that in the command. It will write out a fully expande
>d representation to the console. This representation is extremely>d representation to the console. This representation is extremely
> customizable with various <strong>set print feature-name</strong> customizable with various <strong>set print feature-name</strong
>> commands. See the <a class=" external" href="http://www.gnu.org>> commands. See the <a class="external" href="http://www.gnu.org/
>/software/gdb/documentation/" title="http://www.gnu.org/software/>software/gdb/documentation/" title="http://www.gnu.org/software/g
>gdb/documentation/">gdb documentation</a>.>db/documentation/">gdb documentation</a>.
t157      Apple has an extensive list of <a class=" link-https" href=t171      Apple has an extensive list of <a class="link-https" href="
>"https://developer.apple.com/library/mac/#technotes/tn2124/_index>https://developer.apple.com/library/mac/#technotes/tn2124/_index.
>.html" title="https://developer.apple.com/library/mac/#technotes/>html" title="https://developer.apple.com/library/mac/#technotes/t
>tn2124/_index.html">debugging tips and techniques</a>.>n2124/_index.html">debugging tips and techniques</a>.

Back to History