Skip to content

Commit f6007c8

Browse files
committed
debug launch.json config
1 parent 08932af commit f6007c8

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.vscode/launch.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
2+
// adapted from https://nextjs.org/docs/app/guides/debugging#debugging-with-vs-code
53
"version": "0.2.0",
64
"configurations": [
75
{
@@ -18,7 +16,15 @@
1816
"console": "integratedTerminal",
1917
"skipFiles": [
2018
"<node_internals>/**"
21-
]
19+
],
20+
"sourceMaps": true,
21+
"serverReadyAction": {
22+
"action": "debugWithChrome",
23+
"killOnServerStop": true,
24+
"pattern": "- Local:.+(https?://.+)",
25+
"uriFormat": "%s",
26+
"webRoot": "${workspaceFolder}"
27+
}
2228
}
2329
]
2430
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"strict": true,
99
"forceConsistentCasingInFileNames": true,
1010
"noEmit": true,
11+
"sourceMap": true,
1112
"esModuleInterop": true,
1213
"module": "esnext",
1314
"moduleResolution": "node",

0 commit comments

Comments
 (0)