Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc compiled_modules #345

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,22 @@ Currently, there are cases where the interpreter is too slow for this to be feas
A workaround is to use "compiled mode" which is toggled by pressing `C` in the debug REPL mode (note the change of prompt color).
When using compiled mode, code that is stepped over will be executed
by the normal julia compiler and run just as fast as normally.
The drawback is of course that breakpoints in code that is stepped over are missed.
The drawback is that breakpoints in compiled code that is stepped over are missed.

To split the difference between these two extremes, one can fine tune which modules are compiled and which are not.
For example, to compile all code in Base, even when not in `C` mode, and hence break on all specified points in user code,
issue the following commands on the REPL *before* `@enter`:

```jl
using JuliaInterpreter, MethodAnalysis
union!(JuliaInterpreter.compiled_modules, child_modules(Base))
```

Additional imported modules can also always be compiled with:

```jl
union!(JuliaInterpreter.compiled_modules, SomePackage)
```


### Syntax highlighting
Expand Down