I am very happy to announce PlutoVSCodeDebugger, a package that was just recently registered on the General Registry.
From the package README:
This package provides a very experimental connection between a Pluto Notebook and the Debugger on a running VSCode instance (the VSCode instance must be running on the same machine as the Pluto Server)
To connect VSCode to Pluto and exploit the
@enter commands, follow the steps below:
- Copy the julia code to connect an external REPL from your VSCode window by calling the VSCode command
Julia: Connect external REPL.
- Bring this package into the notebook scope by having a cell with
- Connect VSCode by calling the
@connect_vscodemacro by giving as an argument a
begin...endblock that contains the code pasted at point 1.
After executing the cell with
@connect_vscode you should see a popup on VSCode like the one below confirming the successfull connection:
After succesfull connection you can directly start using the
@run macros inside your Pluto notebook.
You can also use the exported
@vscedit to jump at function definitions in VSCode from the Pluto notebook for convenience of setting up breakpoints. This function works similarly to the
@edit macro from InteractiveUtils.
Check the documentation for more details on how to use this package.
I already find this package very helpful for my usual workflow that is highly centered around Pluto notebooks, and I hope it can also be of use to other people!