Debugging Node.js + Typescript Running inside Docker Containers with Hot Reload

preview_player
Показать описание


Timeline
00:00 Introduction
00:29 Project setup
01:39 Hot reload
02:34 Debugging
04:08 Multiple applications
06:08 Shared library
07:23 Wrap up

Find me online
Рекомендации по теме
Комментарии
Автор

Hey Florian!, thanks for the nice walkthrough. Just a side note, if your app is running in the container at "/opt/app", you should also put that path in the remoteRoot launch config. I just figured that out myself!

TheRcfrias
Автор

After struggling for 4 long hours, I found this and it worked in the first go! Thank you!

LakshyaSethi-gw
Автор

Very useful tutorial for us Docker beginners. Thanks

Willcode
Автор

Works perflectly, awesome video Florian!

ravensthor
Автор

Great tutorial, however I am getting "cannot edit in read only editor" after a breakpoint is reached in the opened file and I cannot directly modify this code without closing the tab and re-opening the file. I assume it's because the file accessed is through the debugger, but how can I solve this issue?

StéphaneChan-Kam
Автор

Nice video man!!! This was really helpful :)

vittomatt
Автор

Can't I run apo1 and app2 in two vscode running side by side, duplicate folder.

pradipspeaks
Автор

Awesome Video on a niche subject of concern . Thank you !

TusharParekhtpar
Автор

Can you make app1 & app2 depends-on ? Like app2 depends-on app1.

pradipspeaks
Автор

What an amazing video! Helped me a lot. Greetings from Brazil!

henriquemundowap
Автор

Thank you so much, , your contents are awesome. 👌

okao
Автор

Amazing video. Thanks a lot

But my hot reload does not work (on windows). Everything seems to work fine (docker compose, starting app, etc), but when I modify a file, nodemon does not recognizes it 😞

joergw
Автор

Thanks for the video! Very helpful I was able to run the same setup.
However I tried to configure a typescript project that already has many modules, could you give some guidance regarding the sourceMap:true config? It seems that when I was running the project inside the docker container the breakpoints were located all over the place :c not matching the lines correctly.

sebastianescalante
Автор

A very good tutorial.
But how do you include a typescript file that's in another folder ?
Do you have to explicitly add the path/file as a volume in the docker.yml ?
I've tried but I get a typescript error, can't find module

roytynan
Автор

Very good Video, you explain it perfectly.

efligonn
Автор

so valuable video... thank you for --nolazy flag, this was a missing peace in my setup, spent hours on resolving this

janisgs