microsoft / vscode-dev-containers

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!
https://aka.ms/vscode-remote
MIT License
4.7k stars 1.41k forks source link

Provide a simple Next.js + Database example #1678

Open mohsen1 opened 1 year ago

mohsen1 commented 1 year ago

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 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