Debugging an Nx typescript app running in a Kind cluster in VS Code #10351
BeyondEvil
started this conversation in
Show and Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have our Typescript backend applications running in local Kubernetes clusters using Kind.
Using VS Code you can attach to the running app (started with
nx serve
) to do live debugging.Very specific, lol. But if it can help one poor soul, I'll be happy. 😊
Relevant parts of configurations below.
kind.yaml
The
extraMounts
is what maps/mounts the local src files into the container running in the Pod.The
extraPortMappings
is what maps a local port to thenodePort
(containerPort
) of the Service attached to the Pod.project.json
Service.yaml
launch.json
(The VS Code debugger configuration)Beta Was this translation helpful? Give feedback.
All reactions