MASON MARK (.COM)

debug your Deno programs with VS Code โ€” NOW WITH LESS FUCKERY!!!

2020-06-20

Exactly 77 days, 7 hours, 7 minutes and 7 seconds ago, this website published a piece called debug your Deno programs with VS Code, delineating derptastic Deno debugging debauchery through which a person could debug their Deno program in VS Code's graphical debugger.

Happily, the shenanigans explained in that article are no longer required. The relevant bug was fixed in the Deno 1.0.0 release, and now it's easy-peasy:

With Deno 1.0.0 and later, all that is required to debug a Deno program in VS Code is to have a run configuration file like the one shown below. (Run configurations are normally located at ./.vscode/launch.json inside your project's folder.)

{
  "version": "0.2.0",
  "configurations": [
    {
      "console": "integratedTerminal",
      "name": "Debug Deno (Allow All)",
      "type": "node",
      "request": "launch",
      "cwd": "${workspaceFolder}",
      "runtimeExecutable": "deno",
      "runtimeArgs": ["run", "--inspect-brk", "-A", "${file}"],
      "port": 9229
     }
  ]
}

With this configuration enabled, you can now set a breakpoint, hit F5, and you are off to the race conditions! ๐Ÿ‡๐Ÿป๐Ÿ›

KEYWORDS: Deno, VS Code, debug, debugger, TypeScript, Black Lives Matter, #GOPStupidityIsADiseaseVectorSuckMyDickAndChokeOnItIYieldMyTimeFUCKYOU

PREVIOUSLY:

2012-11-14
2012-03-16
2011-12-31
2011-12-05
2011-11-11
2011-10-12
2011-10-12
2011-08-10
2011-06-14
2011-03-09
2010-12-25
2010-11-03
2010-09-15
2010-08-25
2010-05-15
2010-04-18
2010-04-18
2010-01-13
2010-01-09
2009-03-25
2008-11-23
2008-11-05
2008-10-25
2008-08-20
2008-05-12
2008-04-08
2008-03-21
2008-01-29
1979-11-20