Remote Debugging
DevSpace lets you easily start applications in development mode and connect remote debuggers for your application using the following steps:
- Configure DevSpace to use a development Dockerfile that:
- ships with the appropriate tools for debugging your application
- starts your application together with the debugger, e.g. setting the
ENTRYPOINTof your Dockerfile tonode --inspect=0.0.0.0:9229 index.jswould start the Node.js remote debugger on port9229
- Define port-forwarding for the port of your remote debugger (e.g.
9229) within thedev.portssection of yourdevspace.yaml - Connect your IDE to the remote debugger (see the docs of your IDE for help)
- Set breakpoints and debug your application directly inside Kubernetes
