Unable to --inspect tRPC endpoints
How is everyone debugging their endpoints, I'd like to breakpoint but chrome doesn't seem to recognise there's an instance running.
See in the video, I have;
- Added a log and debugger statement to create post (default install)
- Can see the log in terminal, but debugger didn't trigger
Any ideas?
3 Replies
I tried via bun (
bun --inspect run dev
), and went to their debugging endpoint (https://debug.bun.sh/) with the same resultNo one any ideas? Bit of a deal breaker not being able to debug my code 😦
For anyone reading this thread in the future, I'm still unable to get --inspect to work on node or bun, as a (better) alternative you can use VSCode built in debugging
The node launch.json configuration looks like this (just default works)
I'm unable to use bun's "debug script" feature, and opened an issue https://github.com/oven-sh/bun/issues/7798
GitHub
Bun can run, but unable to debug NPM script in VSCode · Issue #7798...
What version of Bun is running? 1.0.18+36c316a24 What platform is your computer? Linux 5.15.133.1-microsoft-standard-WSL2 x86_64 x86_64 What steps can reproduce the bug? Video illustrates this best...