We are actively working on breakpoint

We are actively working on breakpoint debugging in v3. No ETA yet, but hopefully soontm
5 Replies
Adam
AdamOP2y ago
@realsnowcode thanks for the questions. For debugging, it'll be built into the runtime, so it should work in IDE or dev tools debuggers - no limit to a specific IDE. As to editors, we use a variety (personally I use VSCode). I do understand that debugging and testing can be a steep learning curve. We're going to be working on improving the docs around those (and templates and examples), and continuing to do demos and posts about how we're building on Workers to hopefully de-mystify it.
Elie Zedeck R.
@realsnowcode actually, it is flawless experience on WebStorm ... however, if you're already using VSCode, it somehow does work, you just have to use actual debugger; in your code, and it will not get hit in your Typescript, but in the Javascript Now, for WebStorm, there are 2 methods: - when you run wrangler dev (v2), it will actually print a WebSocket URL ... you simply click that and it will work, however, be aware that when you make changes to your code and save, Wrangler will restart and the URL will change, and WebStorm will lose connection, so you'll have to click again - the way I do it: is I take note of the port on that WebSocket URL, it is the one that doesn't change, unless you manually restart Wrangler; create a debugging profile, and use that port; at least, you only have to change the port, once for every-time you restart Wrangler; but the nice thing here, is that you can enable Auto-reconnect in WebStorm, and it will automatically re-apply your breakpoints, even if you make changes to your Typescript codes, very handy to test something out repetitively until you get the desired result Hope that helps you, and anyone looking into having nice debugging experience for now, until the Wrangler v3 debugging comes out.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Elie Zedeck R.
Try to configure as illustrated ... it should be a Attach to Node.js/Chrome profile
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server