lvin
lvin6mo ago

deno options not available in vscode debugger options

latest vscode, latest deno, yes ive got the extension installed
No description
2 Replies
Deno AI Helper
Deno AI Helper6mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on your message, if the Deno options are not available in the VSCode debugger, it might be due to a few common issues that can occur with configurations or extensions. Here are a few things you could check: 1. Ensure that the Deno extension is enabled for your workspace. Sometimes extensions can be disabled on a per-workspace basis. 2. Check if the Deno language server is running. You can look at the VSCode status bar at the bottom to see if the Deno language server is active. 3. Verify that your launch.json configuration is set up correctly for Deno. It should include a configuration for Deno like this:
{
"version": "0.2.0",
"configurations": [
{
"name": "Deno",
"type": "pwa-node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "deno",
"runtimeArgs": ["run", "--allow-all", "your_script.ts"],
"outputCapture": "std"
}
]
}
{
"version": "0.2.0",
"configurations": [
{
"name": "Deno",
"type": "pwa-node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "deno",
"runtimeArgs": ["run", "--allow-all", "your_script.ts"],
"outputCapture": "std"
}
]
}
Make sure to replace "your_script.ts" with the path to your Deno script. 4. If you've recently updated the Deno extension or VSCode itself, sometimes a restart of VSCode can help to ensure that all components are loaded correctly. Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of the advice given. If the issue persists, you might want to check the GitHub repository or issues for the Deno extension in VSCode for any similar reported issues or reach out to the community for further assistance.
Leokuma
Leokuma6mo ago
You have to use the Node debugger. Both Deno and Node use the same "debugging protocol" (V8 inspector) But it should be easier for you to just delete that launch.json and use VS Code to generate a default Deno launch.json. Just go to the "Run and Debug" menu, click on "create a launch.json file" and a Deno option will appear