Closed endquote closed 1 year ago
Pastel is a regular dependency, so if you set up a debugger for a TypeScript project, it should work. I don't use it myself, so can't help setting one up.
Thanks for the helpful reply.
In case anyone else is wondering:
Just add "sourceMap": true
under compilerOptions
in tsconfig.json
.
Add this .vscode/launch.json
file:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "launch",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/source/cli.tsx",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
}
]
}
Thanks for posting your setup, hope it'll be useful for anyone looking 👍
Is there a
.vscode/launch.json
configuration that would work to allow debugging through a typescript pastel project?