Caution
Why I say crude? Because you need to write debugger and cannot use breakpoints :/.
-
Create a
Dockerfile
as we did here.nestjs-materials/docker/vscode-dev-mode/Dockerfile
Lines 1 to 19 in 5155bff
-
Create and expose
9229
port in yourcompose
file, see here.nestjs-materials/docker/vscode-dev-mode/compose.yml
Lines 1 to 12 in 5155bff
-
Create
launch.json
.nestjs-materials/.vscode/launch.json
Lines 1 to 18 in 5155bff