-
Notifications
You must be signed in to change notification settings - Fork 0
Add debugger support #85
Copy link
Copy link
Open
Description
To make life easier for me and perhaps for those who will still be engaged in the project, there is a cool feature in VS code, which can allow you to add the ability to debug the project on React.
Here are the templates:
Run -> Add Configuration -> Node JS
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"port": 9229
}
]
}
In package.json add:
"debug": "NODE_OPTIONS='--inspect' next dev",
After run press F5 and put necessary breakpoint.
Also will be nice if we add this feature into readme.md
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels