-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #602 from narengogi/chore/debug-config-vscode
Chore: Debug configs for vscode
- Loading branch information
Showing
3 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
/* | ||
1. steps to run wrangler debugger (https://blog.cloudflare.com/debugging-cloudflare-workers/) | ||
- run `npm run dev` in a terminal | ||
- in debug and run tab, select 'Wrangler debug' and run | ||
- add a breakpoint and verify | ||
|
||
2. Steps tp run node debugger | ||
- In debug tab select "Node debug" and run | ||
- add a breakpoint and verify | ||
*/ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Wrangler debug", | ||
"type": "node", | ||
"request": "attach", | ||
"port": 9229, | ||
"cwd": "/", | ||
"resolveSourceMapLocations": null, | ||
"attachExistingChildren": false, | ||
"autoAttachChildProcesses": false | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Node debug", | ||
"runtimeExecutable": "tsx", | ||
"runtimeArgs": ["${workspaceFolder}/build/src/start-server.js"], | ||
"sourceMaps": true, | ||
"outFiles": ["${workspaceFolder}/build/**/*.js"], | ||
"sourceMapPathOverrides": { | ||
"../src/*": "${workspaceFolder}/src/*" | ||
}, | ||
"skipFiles": ["<node_internals>/**"], | ||
"preLaunchTask": "npx tsc", | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"postDebugTask": "cleanup build" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "shell", | ||
"label": "npx tsc", | ||
"command": "npx", | ||
"args": [ | ||
"tsc", | ||
"--sourcemap", | ||
"true", | ||
"--outDir", | ||
"${workspaceFolder}/build" | ||
], | ||
"problemMatcher": ["$tsc"], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "cleanup build", | ||
"command": "rm", | ||
"args": ["-rf", "${workspaceFolder}/build"], | ||
"problemMatcher": [], | ||
"group": "build", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "new" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ | |
"jsx": "react-jsx", | ||
"jsxImportSource": "hono/jsx", | ||
"resolveJsonModule": true | ||
} | ||
}, | ||
"exclude": ["**/*.test.ts"] | ||
} |