How to run debug configs in my monorepo?

The error: Cannot find “pnpm-workspace.yml” in Debug mode.

 

I dont know what changed (it worked before), but I cannot run the Run Configurations of my monorepo in “Debug” mode  anymore.

Regular run works fine (play button), but when I try to debug (bug button) it seems to search for the pnpm monorepo file (pnpm-workspace.yml) in the local folder (here "packages/ui") instead of the root folder (here c:/monorepo) where it is located.

 

 

{
 "errno": -4058,
 "code": "ENOENT",
 "syscall": "stat",
 "path": "C:\\monorepo\\packages\\ui\\pnpm-workspace.yml"
}

0

The issue doesn't look related to debugging, this should work equally in run and debug mode as the command being run is the same, the only difference is the NODE_OPTIONS environment variable that is set to pass the debug flags to all spawned Node.js processes.

0

请先登录再写评论。