Blair
Blair8mo ago

How to debug deno on Visual Studio? (Not VSCode)

Is it possible to debug deno on Visual Studio? (not vscode) I only know how to debug it using windows cmd like
C:\Users>deno run --allow-read --allow-env --allow-os --allow-net C:\api\index.js
C:\Users>deno run --allow-read --allow-env --allow-os --allow-net C:\api\index.js
Im asking if its possible to configure the Visual Studio IDE to debug the code:
No description
4 Replies
Deno AI Helper
Deno AI Helper8mo ago
I wasn't able to find the answer to your question in the official Deno documentation regarding debugging Deno in Visual Studio (not VSCode). Based on the information you've provided, there are no obvious syntax errors or mistakes in the command you're using to run Deno from the command line. However, I would like to point out that the advice I'm providing is not based on the Deno documentation, and I advise you to double-check the accuracy of the advice given. As for configuring Visual Studio for Deno debugging, Deno is typically associated with Visual Studio Code for debugging purposes, and there may not be out-of-the-box support or extensions for Deno in Visual Studio. You might need to configure the debugger manually or use a third-party extension if one is available. Since this is not covered in the Deno documentation, you may need to look for community resources or guides that could help you set up Visual Studio for Deno debugging.
Leokuma
Leokuma8mo ago
IDK, but I don't think it's possible. At least I haven't seen anyone doing this. Deno is debugged via V8 Inspector Protocol, which is the same as NodeJS. So, if Visual Studio supports it, then Visual Studio should be able to debug Node as well, which I don't know
Blair
Blair8mo ago
Visual Studio support debugging nodejs
Leokuma
Leokuma8mo ago
oh I just saw that in your screenshot Apparently Visual Studio implemented that in a coupled way that is specific to Node, so I don't think it will work. Since Node and Deno use the same debugging protocol, It shouldn't be hard for VS to support Deno, but I don't think it will happen any time soon I'm just guessing, though. Maybe someone more knowlegeable than me can jump in and answer you better