Blair
Blair5mo 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 Helper5mo 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
Leokuma5mo 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
Blair5mo ago
Visual Studio support debugging nodejs
Leokuma
Leokuma5mo 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
More Posts
How to polyfill node imports when bundling with the deno version of esbuild?Hello, I am trying to run esbuild using https://deno.land/x/esbuild to bundle a Deno project into aforward stream response from openapi to frontendforward stream openapi by using deno backend as a middleware, how to receive and send stream to fronShould deno install work with jsr?What am I doing wrong? When I try to install a CLI from jsr.io and then use it, I get an error messaImport-IntelliSense with Fresh and VSCode doesn't work as expectedHey. I'm fairly new to Deno and Fresh so I assume I'm simply missing something. I've created a FreshHow to rewrite this code so I don't have to force deno to stop linting?```ts import { parse } from "https://deno.land/std@0.218.2/toml/mod.ts"; import { match } from "npm:Deno compile optimizationHi Everyone, I'm building a CLI tool with Deno and I was wondering - if there are any optimizationIs there a way to select Partial Mode on button?I researched and I do not think it is possible, but it would be nice to do something like: ```<a f-pHow to Restart Server ManuallyI run Hono framework with Deno. I run the server using task script `deno run -A --watch ./server/maiIs there any reference manual for how doc comments are rendered on JSR or deno.land/x?I guessed it's just TSDoc, but it turns out that it's not exactly TSDoc (e.g., `@link` to an instancHow to start using data validation in kv?Hey fellows! I want to dive into data validation. Any experience or suggestions? Feel free to post