NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
I've been struggling to setup a simple Next.js app with two containers (Next.js serve and DB container) and have the debugger working properly. Ideally I want to start the container and have debugger attached to to the "app" container for easy debugging.
I've most of it working except for the debugger. I'm very confused with how to configure launch.json with Dev Containers. It's almost impossible to search for solution for this because all results are about launch.json.
I've been struggling to setup a simple Next.js app with two containers (Next.js serve and DB container) and have the debugger working properly. Ideally I want to start the container and have debugger attached to to the "app" container for easy debugging.
I've most of it working except for the debugger. I'm very confused with how to configure
launch.json
with Dev Containers. It's almost impossible to search for solution for this because all results are aboutlaunch.json
.I asked a StackOverflow question but nobody has answered it either: https://stackoverflow.com/questions/74030748/how-to-configure-vscode-dev-container-to-attach-to-running-next-js
Relates to: Remote - Containers