Revision 3770c617b060f467d7c48d102fe258f15392d42a authored by Cody-G on 17 February 2016, 23:09:11 UTC, committed by Tony Kelman on 07 March 2016, 16:49:14 UTC
(cherry picked from commit 73a572cb70db79e6c383d4ac19257d13c31c2863) ref #15125
1 parent 62b7e07
DEBUGGER.md
The Julia Debugger
------------------
In order to have a Julia debugger, we first need a version of LLDB
that understands Julia's JITed stack frames. To do so, build Julia
with instructions from https://github.com/Keno/Cxx.jl. Just the julia
parts are required. The Cxx part won't be necessary until the debugger
UI is released.
Use LLDB just as you would usually.
This should at least get stack traces and the ability to step
through julia code. Please file any issues as bug reports.
For local variables, you may get some, and you'll get more if you set
`DISABLE_OPT` in `src/options.h`. If you set the latter, it is useful
to collect a set of test cases that don't get local variables even
though they should. You will probably find a lot of functions don't
work, yet.
OS X
====
* Enable FORCE_ELF in src/options.
* Comment out `if (arch.GetTriple().getVendor() != llvm::Triple::Apple)`
in deps/llvm-svn/tools/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
* export `LLDB_DEBUGSERVER_PATH=/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/debugserver`
References
==========
The original post on julia-dev: https://groups.google.com/forum/#!topic/julia-dev/gcZ5dZJni5o
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...