Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
8 replies
Gabriel

Debugging TRPC issues?

Am I the only one having trouble debugging trpc code?
I am talking specifically about endpoints. I can't seem to mouse over variables / objects and it's quite difficult to debug. I am running the debugger with these options:
{
      "name": "Next.js: debug full stack",
      "type": "node-terminal",
      "request": "launch",
      "command": "npm run dev",
      "serverReadyAction": {
        "pattern": "started server on .+, url: (https?://.+)",
        "uriFormat": "%s",
        "action": "debugWithChrome"
      },
      "skipFiles": [
        "${workspaceRoot}/node_modules/**/*.js",
        "<node_internals>/**/*.js"
      ]
    }


In this picture, my mouse is over the _apps return statement, and as you can see, nothing is showing. Also, in the Variables > Local window (object explorer), you can see that _apps is not showing.
image.png
Was this page helpful?