Commit 5448689
committed
vscode: add a Debug launch configuration
This repository has quite a few node.js scripts in it, and sometimes
it is useful to debug them using a proper debugger, using
single-stepping, break points, watch expressions, just like the one that
comes with VS Code.
So let's add a launch configuration that allows to do just that. By
default, it starts the current file. That is not generally useful
because these node.js scripts are meant to be included in the GitHub
workflows and the function are expected to be called from
`actions/github-script` steps. However, by appending something like
this, debugging now gets a lot easier:
;(async () => {
console.log('Hello world!')
})().catch(e => {
console.error(e)
process.exit(1)
})
Signed-off-by: Johannes Schindelin <[email protected]>1 parent 20d13d6 commit 5448689
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments