Author -  Sai gowtham

How to debug a Deno in VsCode

In this tutorial, we are going to learn about how to debug a deno code using the VsCode editor.

Debugging deno in VsCode

We can debug a deno in vscode by attaching a debugger manually using the launch.json file.

Note: The official support for a debugging via plugin is currently working on click here to know more.

  1. First, open the deno project in vscode.

  2. Create a .vscode folder in the root directory.

  3. Now, create a launch.json file inside the .vscode folder and add the following configuration.

launch.json
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Deno",
            "type": "node",
            "request": "launch",
            "cwd": "${workspaceFolder}",
            "runtimeExecutable": "deno",
            "runtimeArgs": ["run", "--inspect-brk", "-A", "<entry-point>"],            "outputCapture": "std",
            "port": 9229
        }
    ]
}

In the above code, replace the <entry-point> with the script file path you want to debug for example server.js or app.js.

  1. Add the breakpoints in your script file and start debugging by pressing a shift+cmd+d keyboard shortcut or by clicking a play button in the left side panel.

Css Tutorials & Demos

How rotate an image continuously in CSS

In this demo, we are going to learn about how to rotate an image continuously using the css animations.

How to create a Instagram login Page

In this demo, i will show you how to create a instagram login page using html and css.

How to create a pulse animation in CSS

In this demo, i will show you how to create a pulse animation using css.

Creating a snowfall animation using css and JavaScript

In this demo, i will show you how to create a snow fall animation using css and JavaScript.

Top Udemy Courses

JavaScript - The Complete Guide 2023 (Beginner + Advanced)
JavaScript - The Complete Guide 2023 (Beginner + Advanced)
116,648 students enrolled
52 hours of video content
$14.99 FROM UDEMY
React - The Complete Guide (incl Hooks, React Router, Redux)
React - The Complete Guide (incl Hooks, React Router, Redux)
631,582 students enrolled
49 hours of video content
$24.99 FROM UDEMY
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
203,937 students enrolled
31.5 hours of video content
$14.99 FROM UDEMY