I am currently facing an issue with debugging a Google Cloud Run application on the Cloud Run emulator. The application is built using TypeScript. While I can successfully run and debug the application locally, breakpoints are being ignored or grayed out when attempting to debug on the cloud emulator.
I am using VS Code for this process, and below is the content of my launch.json file:
"name": "Cloud Run: Run/Debug Locally",
"type": "cloudcode.cloudrun",
"request": "launch",
"build": {
"docker": {
"path": "Dockerfile"
}
},
"image": "get-num-partitions",
"service": {
"name": "get-num-partitions",
"containerPort": 8080,
"resources": {
"limits": {
"memory": "256Mi"
}
}
},
"target": {
"minikube": {}
},
"watch": true,
"debug": {}
}
Even though the debugger seems to be attaching properly and the application runs, it does not respect the breakpoints set during debugging.