julia-vscode / julia-vscode

Julia extension for Visual Studio Code
https://www.julia-vscode.org/
Other
1.28k stars 199 forks source link

Debugger Compiled Code Documentation and Problems #3335

Open nathanrboyer opened 1 year ago

nathanrboyer commented 1 year ago

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.

image

Please add more common shortcuts under the three dots menu, so I don't have to manually add every submodule. image

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?

brychcy commented 11 months ago

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"

MariusDrulea commented 11 months ago

https://www.julia-vscode.org/docs/dev/userguide/debugging/#Settings-to-speed-up-the-debugger

nathanrboyer commented 8 months ago

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 +: image

After restarting VSCode with just "ALL_MODULES_EXCEPT_MAIN" set in the JSON settings (even Base is interpreted): image