Is there a good way to debug RPC on

Is there a good way to debug RPC on localhost? i only see connected, or not connected. no support in debugging or where the issue can be. funny enough: same code works on our remote environment - but not localhost.
7 Replies
petebd
petebd6mo ago
Are you talking about having a multi-worker setup with RPC service bindings between the two? And you want to locally develop them both and step through debug them? Have you tried running both Workers in one instance of Wrangler by using multiple -c args? E.g.
wrangler dev -c worker1/wrangler.jsonc -c worker2/wrangler.jsonc
wrangler dev -c worker1/wrangler.jsonc -c worker2/wrangler.jsonc
piffie
piffieOP6mo ago
yeah then it somehow does not take the hyperdrive connections correctly for the secondary worker
piffie
piffieOP6mo ago
No description
piffie
piffieOP6mo ago
its not mapping hyperdrive, but somehow only with a weird key the connection string we dont need the debugging feature - just the rpc to work.
petebd
petebd6mo ago
Ah - that might be because Wrangler only passes those Hyperdrive env vars through to the primary worker. Perhaps could you create an issue in workers-sdk as we could probably fix that
piffie
piffieOP6mo ago
okay - will do.
piffie
piffieOP6mo ago
GitHub
Hyperdrive does not work localhost when running 2 workers in the sa...
What versions & operating system are you using? wrangler v4.16, windows Please provide a link to a minimal reproduction No response Describe the Bug When using 2 wrangler in localhost mode: aka...

Did you find this page helpful?