docs: add usage guide for debugging in VSCode
This commit is contained in:
parent
b6edf05e6e
commit
269962455e
1 changed files with 13 additions and 0 deletions
13
.vscode/debug.md
vendored
Normal file
13
.vscode/debug.md
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Debugging in VSCode/Cursor (no Turbopack)
|
||||||
|
|
||||||
|
This project includes a VSCode debug configuration using the `pwa-node` debugger.
|
||||||
|
|
||||||
|
- Turbopack is disabled during debugging to ensure stable breakpoint support across platforms (especially on Windows).
|
||||||
|
- The debugger starts Next.js in development mode using `pnpm exec next dev`.
|
||||||
|
|
||||||
|
## How to Use
|
||||||
|
|
||||||
|
1. Press **F5** or start debugging via the VSCode/Cursor menu (Run → Start Debugging)
|
||||||
|
2. Set breakpoints in your code
|
||||||
|
3. For pages/components: save the file to trigger Fast Refresh
|
||||||
|
For API routes: manually re-trigger the route (e.g. in the browser), since they don’t re-run automatically on save
|
||||||
Loading…
Add table
Add a link
Reference in a new issue