julia-vscode icon indicating copy to clipboard operation
julia-vscode copied to clipboard

Debugger Compiled Code Documentation and Problems

Open nathanrboyer opened this issue 1 year ago • 3 comments

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

  • 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.) image 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?

nathanrboyer avatar Jun 23 '23 19:06 nathanrboyer

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"

brychcy avatar Sep 01 '23 20:09 brychcy

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

MariusDrulea avatar Sep 04 '23 16:09 MariusDrulea

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

nathanrboyer avatar Dec 08 '23 17:12 nathanrboyer