Clone the repo and install the repo.
Make sure to install the dependencies:
# npm
npm install
Start the development server with debugging enabled on http://localhost:3000
:
# npm
npm run debug
There is a preconfigured launch configuration for VSCode in .vscode/launch.json
. You can use this to attach the debugger to the running application.
You can set a breakpoint in server/api/test.ts
and then open http://localhost:3000/api/test
in your browser.
The debugger should stop at the breakpoint. But it does not. For some reasons the sourcemaps located unter .nuxt/dev
are not loaded.
Instead of starting the application from the terminal, you can also start it from VSCode. There is a preconfigured launch configuration for VSCode in .vscode/launch.json
.
You can use this to start the application with the debugger.
You can set a breakpoint in server/api/test.ts
and then open http://localhost:3000/api/test
in your browser.
The debugger stops at the breakpoint. The sourcemaps under .nuxt/dev
are loaded and the breakpoint is hit.