Debugging workers with shared durable objects

I have two cloudflare workers, A and B. Worker B uses durable objects of worker A. I want to debug worker B locally.

If I run both workers with separate wrangler dev commands, worker B cannot access worker A's durable objects. (Error: Cannot access "MyDurableObject#myMethod" as Durable Object RPC is not yet supported between multiple dev sessions.)

If I run worker B with wrangler dev and add worker A via an additional -c argument the durable object access works. But in Chrome DevTools only the sources for worker A are loaded and I cannot debug errors in worker B.

Is this a bug or am I doing something wrong?
Was this page helpful?