Activate debug mode
To check if the written code works or if you want to know why the function doesn’t work, you can activate debug mode. In the context menu of a package, while holding the Shift key select the command for the extension function.
Then you can access further settings:
If necessary, set up the extension server locally (on your client computer) and follow the step-by-step instructions. In Visual Studio Code, you can set a breakpoint (F9) to the function in the index.js file and then use the View/CommandPalette command in the main menu to execute the Debug:Attach to Node Process command. Then select the appropriate debugging process:
Now you can start the extension function with OK and the execution stops at the breakpoint.