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

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2024

Комментарии • 45

  • @LakshyaSethi-g7w
    @LakshyaSethi-g7w Год назад

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

    • @flolu
      @flolu  Год назад

      Im' glad to hear that!

  • @TheRcfrias
    @TheRcfrias 6 месяцев назад +1

    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!

    • @flolu
      @flolu  6 месяцев назад

      Good to know!

  • @Will2code
    @Will2code 5 месяцев назад +1

    Very useful tutorial for us Docker beginners. Thanks

    • @flolu
      @flolu  5 месяцев назад

      Glad you liked it

  • @ravensthor9547
    @ravensthor9547 2 года назад

    Works perflectly, awesome video Florian!

  • @henriquemundowap5046
    @henriquemundowap5046 Год назад

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

    • @flolu
      @flolu  Год назад

      I'm glad that the video helped you!

  • @TusharParekhtpar2014
    @TusharParekhtpar2014 2 года назад

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

    • @flolu
      @flolu  2 года назад

      Great to hear that!

  • @StéphaneChan-Kam
    @StéphaneChan-Kam 9 месяцев назад

    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?

  • @vittomatt
    @vittomatt 2 года назад +1

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

  • @okao08
    @okao08 2 года назад +2

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

    • @flolu
      @flolu  2 года назад +1

      Thank you Hamzath, I appreciate it!

  • @sebastianescalante9855
    @sebastianescalante9855 Год назад

    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.

    • @flolu
      @flolu  Год назад

      Glad it helped! But to be honest, I never had this problem before. I would recommend you to create a detailed StackOverflow question about it. Unfortunately I cannot really help you with this. Good look!

  • @pradipspeaks9395
    @pradipspeaks9395 Месяц назад

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

  • @roytynan2116
    @roytynan2116 Год назад

    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

    • @flolu
      @flolu  Год назад

      Thank you! And if you want to include a TypeScript file, that is located in another folder, you need to add this folder to the container as a volume under "volumes" in docker-compose.yml

    • @roytynan2116
      @roytynan2116 Год назад

      @@flolu OK, It works , I'd missed the . from ./

  • @szczodre88
    @szczodre88 2 года назад

    Really cool video - helped a lot!

    • @flolu
      @flolu  2 года назад

      Thank you!

  • @pradipspeaks9395
    @pradipspeaks9395 Месяц назад

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

  • @janisgs
    @janisgs Год назад

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

    • @flolu
      @flolu  Год назад

      I'm glad to hear, that this video helped you!

  • @joergw
    @joergw Год назад

    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 😞

    • @flolu
      @flolu  Год назад

      I'm sorry for you. Not sure what's going on there. Might be a problem on Windows

    • @joergw
      @joergw Год назад +1

      @@flolu I got it! There is a known issue for network shares or (some) mounted volumes. You can set "nodemon -L" or "nodemon --legacy-watch" so nodemon uses a polling-technique (I would recommend this only for local environment). It works for me. So just in case somebody will have the same problem 😀

  • @efligonn
    @efligonn 2 года назад

    Very good Video, you explain it perfectly.

    • @flolu
      @flolu  2 года назад

      I'm glad I could help!

  • @SimonKatan
    @SimonKatan Год назад

    So helpful thankyou !

  • @MrRocketRider
    @MrRocketRider Год назад

    awesome, thanks!!

    • @flolu
      @flolu  Год назад

      You're welcome!

  • @monero.jeanniton
    @monero.jeanniton Год назад

    Thank you ..!

  • @FelipeROliveira1
    @FelipeROliveira1 Год назад

    tks man!😁

  • @leogariba
    @leogariba 7 месяцев назад

    Thanks!

    • @flolu
      @flolu  7 месяцев назад

      Welcome!

  • @jameshobbs
    @jameshobbs Год назад

    Nice1!

  • @chorny33
    @chorny33 Год назад

    Мне очень помогло, спасибо

    • @flolu
      @flolu  Год назад +1

      Это меня очень радует

  • @fritzrich8903
    @fritzrich8903 2 года назад +2

    Hallo

  • @Milk-gw1zl
    @Milk-gw1zl 9 месяцев назад +1

    Thanks you very much. ❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤

    • @flolu
      @flolu  9 месяцев назад

      You are welcome 😊