š Feature Request: Add a `.vscode/launch.json` during project creation
See original GitHub issueHi,
Basically, I donāt know how to debug a worker with VS Code. When clicking āRun/Debugā in VS Code, it basically invokes what is configured in .vscode/launch.json
. I just have no idea what should be written there since the dev environment is wrapped by wrangler.
Since most of the people are using VS Code and they probably have a similar problem, I assume it would be a nice addition and improving developer experience significantly.
Iāve also posted a related thread here: https://community.cloudflare.com/t/how-to-debug-use-breakpoints-with-vs-code/423775
Thanks for consideration.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Debugging in Visual Studio Code
VS Code keeps debugging configuration information in a launch.json file located in a .vscode folder in your workspace (project root folder) or in...
Read more >Configure launch.json for C/C++ debugging in Visual Studio ...
Visual Studio Code generates a launch.json (under a .vscode folder in your project) with almost all of the required information.
Read more >Debug Node.js Apps using Visual Studio Code
Debugging configurations are stored in a launch.json file located in your workspace's .vscode folder. An introduction into the creation and use of debuggingĀ ......
Read more >Visual Studio Code documentation search
Visual Studio Code generates a launch.json (under a .vscode folder in your project) with almost all of the required information.
Read more >User and Workspace Settings - Visual Studio Code
For example, @feature:explorer shows settings of the File Explorer. ... When you add a Workspace Settings settings.json file to your project or sourceĀ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://twitter.com/threepointone/status/1525447479872868352
I tried it with the configuration given in the screenshot:
ā¦but in my case it did not work. I got a couple of issues.
Somehow the debugger has problems attaching. Sometimes it does, sometimes it does not.
A common error showing up in wrangler is:
While the debugger complains that its session has ended:
I managed to get one step ahead and get it briefly attached, just to see that the breakpoints still arenāt working. This time the message looks as follows:
It suggested to add
"sourceMap": true
to thetsconfig.json
, but even after this change it does not appear to work.Back to āconsole.logā debugging š¤