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
Yoers
Yoers•11mo ago
I tried via bun (bun --inspect run dev), and went to their debugging endpoint (https://debug.bun.sh/) with the same result
No description
Yoers
Yoers•11mo ago
No one any ideas? Bit of a deal breaker not being able to debug my code 😦
Yoers
Yoers•11mo ago
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)
{
// 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": [
{
"name": "Node run NPM script",
"type": "node",
"request": "launch",
"runtimeArgs": [
"run-script",
"dev"
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
}
]
}
{
// 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": [
{
"name": "Node run NPM script",
"type": "node",
"request": "launch",
"runtimeArgs": [
"run-script",
"dev"
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
}
]
}
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...
Want results from more Discord servers?
Add your server