World age warning on debugger

I’m quite new to VS Code. I just started to use it several days ago. I’m already comfortable in editing Julia code on it. I use the official Julia extension.

When I run the debugger on a module, however, it warns about world-age issues on all my functions, even when the module includes only function statements and using statements for standard modules. There is absolutely no global variables, include statements, or any function calls at the module top level.

But then, searching this forum, I found only old threads about the VS Code Julia debugger. So, I wonder what’s going on.

What does that mean exactly?

FWIW, I’d always recommend running very specific code in the debugger, e.g. with @run/@enter.

Thank you for your question, which by itself shows that “the debugger” (to me) isn’t well known in the Julia community!

  1. Install the official Julia extension (author: julialang).
  2. Open your Julia program/module.
  3. Click on the “Run and Debug” button in the left-most side strip > The “Run and Debug” pane shows up to the left of the editor tab.
  4. Click on the “create launch.json file” link and save launch.json file which is automatically generated.
  5. Come back to your Julia program (activate your Julia source code tab).
  6. Click on the “play” :play_button: button at the top of the “Run and Debug” pane.

Then, the debug session starts. If your code includes an error, the line is highlighted and a popup shows a detailed error diagnosis.

I thought that this is how debugging works on VS Code.