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.)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
{
  "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
Version 2.0a1
2012-03-16
QRWTF
2011-12-31
UFC 141 Predictions
2011-12-05
The Xcode Fairy
2011-11-11
mail fail
2011-10-12
NIGGERHEAD
2011-10-12
tasty Tokyo tacos
2011-08-10
DRM clusterfuck
2011-06-14
9 lifetimes
2011-03-09
Dear Rubymine
2010-12-25
MERRY ATHEISTMAS!
2010-11-03
cutting boards
2010-09-15
REDACTED
2010-08-25
HELLO, KPCHNZ
2010-05-15
Never Surrender
2010-04-18
stop the insanity
2010-04-18
I like my new phone
2010-01-13
caution: snakes
2010-01-09
♬♩
2009-03-25
'TARD FIGHT!!!!
2008-11-23
34 ways to die*
2008-11-05
yes, we did
2008-10-25
si, se puede
2008-08-20
If it *is* Biden...
2008-05-12
2.0
2008-04-08
blink faster
2008-03-21
📕 Red Mars
2008-01-29
vote
1979-11-20
new gun