julia-vscode
julia-vscode copied to clipboard
Debugger Compiled Code Documentation and Problems
I cannot figure out how to compile everything except the functions defined in my package, and I imagine that is the most useful debugging configuration for everyone.
- The documentation is minimal and outdated.
- The red Enable Compiled Mode button does not change anything when I click it. (Remains a red dot. Lists below do not change.)
- There is a GIGANTIC list of modules under All even though I've only loaded my package. (I assume these are nested dependencies of my package, but how can I manage all of these?)
- There are two different
+
buttons next to each module under All which appear to do the exact same thing. (Both switch mode of everything under the dropdown arrow.) - I see no way to batch select multiple modules for compilation. (Clicking each one individually would take forever.)
- Following the instructions under the main
+
button next to the red dot also did not work. (Only the explicitly typed-out module was added: none of its dependencies.)
Please add more common shortcuts under the three dots menu, so I don't have to manually add every submodule.
I tried to debug with the "default compiled modules/functions", but my breakpoint was not reached even after 3 hours. The same function call runs natively in 30 seconds.
What am I supposed to do if I can't reach my breakpoint in default mode and don't want to click hundreds of plus buttons to compile all the submodules?
Hard to find, but already implemented, see https://github.com/julia-vscode/julia-vscode/issues/2516 Summary: Use the "+" above "compiled" to add "ALL_MODULES_EXCEPT_MAIN". Then use the add the Modules you want interpreted, prefixed by "-", e.g. "-MyModule"
https://www.julia-vscode.org/docs/dev/userguide/debugging/#Settings-to-speed-up-the-debugger
Neither adding with the +
button nor modifying the settings.json seems to actually compile all modules but main. There are still many interpreted modules listed.
After adding "ALL_MODULES_EXCEPT_MAIN" with the +
:
After restarting VSCode with just "ALL_MODULES_EXCEPT_MAIN" set in the JSON settings (even Base is interpreted):