Skip to content

Commit

Permalink
feat: add launch.json for REPL
Browse files Browse the repository at this point in the history
The launch configuration first builds then starts the REPL and attaches a debugger to it.
It is important that "console": "integratedTerminal" is set, so that one can still use the REPL.
  • Loading branch information
Slartibartfass2 committed Dec 11, 2024
1 parent 8abfb78 commit 890e4b9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"node_modules/**"
],
"program": "${workspaceFolder}/src/cli/flowr.ts",
"preLaunchTask": "npm: build:bundle-flowr",
"console": "integratedTerminal",
},
{
"type": "node",
"request": "attach",
"name": "Attach to Process",
"port": 9229
}
]
}

0 comments on commit 890e4b9

Please sign in to comment.