Debugging a Java Web App using Tomcat & VS Code

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

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

  • @NandaAcademies
    @NandaAcademies 3 года назад +5

    The link is: github.com/branflake2267/debugging-java-webapp

  • @தேவிப்ரியாகுமாரன்

    Exactly what i needed for my research 😊

    • @1.8mviews29
      @1.8mviews29 2 года назад

      enaku doubt irku konja help pana mudiyuma?

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

    Exactly what I needed! Thanks so much for making this video!

  • @TarekFaham
    @TarekFaham 3 года назад +3

    Fantastic... How to debug the Java web application running on a remote Tomcat server not running locally?

  • @zqhou7435
    @zqhou7435 3 года назад +1

    Thank you so much and your voice is very magnetic

  • @AbcdAbcd-fl2mx
    @AbcdAbcd-fl2mx 3 года назад +1

    Thank you so much for such a great tutorial.

  • @skillionair6181
    @skillionair6181 3 года назад +2

    But how do we get the tomcat server part. Is it an extension? because I cant see it. This is not elaborate at all

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

    Hey @Brandon, Thanks so much for publishing this helpful in-depth video tutorial. This turned out to be EXACTLY something I was looking for! 🙏 Specially this is really useful for those who face problems running a Java project in other IDEs such as STS. I am also trying to find out now to debug the front end alongside the back end while the application is running in the same browser window which launched upon starting the web app. I have done this for several other Node JS apps which output a front end application (mostly ReactJS); But in this case I think the scenario changes since the Java webapp is running on one port and front end code is just output as response. So far only what I could do is to depend on Chrome DevTools by adding debug points on the loaded JS files from the Sources tab. Please suggest if you have any idea.

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

    I think you don't mention the extension that you're using throughout. Looking on your project page, I can see you're using an expired extension.

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

    Thank you very much, Brandon, for this video. It helped a lot. However, I'm having a hard time watching variables in the debug mode. As a value for the variables I get "Cannot evaluate because of java.lang.IllegalStateException: Project [*] cannot be found..". Other debug features work fine: break points hit and step-ins work. What am I missing here? Thanks!

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

    Is there a playlist where one can learn to program with JAVA and Visual Studio Code?

  • @seastraus1
    @seastraus1 4 года назад

    Thank you very much! It helped a lot!

  • @rudypacheco1500
    @rudypacheco1500 3 года назад

    an alert tells me Cannot find any changed classes for hot replace! anyone know what it could be?

  • @jacobovasquez2449
    @jacobovasquez2449 4 года назад +2

    Thanks for your video, I'm noob with vscode and I would like to know what extensions you recommend to install on, you know, for getting a good start coding and debugging like you do?

  • @manojtewari3814
    @manojtewari3814 3 года назад

    if u change in jsp file hot code replace is not working

  • @王宇航-l1s
    @王宇航-l1s 2 года назад

    Thanks for your video! But how can I update html page?following your steps,I can update java file,but I can’t update html page.if I want to update html page,I have to run war:exploded again and restart tomcat server or publish server(full).how can I update html file with one step in vscode like idea do.(my English is not good,wish you can understand what I’m saying)

  • @zurikzava9971
    @zurikzava9971 3 года назад

    The "plus" icon doesn't do anything for me, anyone have that issue?

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

    how to make changes in index.jsp files without deleting again and again war files and then regenrate it

    • @王宇航-l1s
      @王宇航-l1s 2 года назад +1

      I also have this problem too.do you know how to update html with one step now?

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

      Same

  • @mortysmith3018
    @mortysmith3018 4 года назад +3

    there is no github link in description

    • @RenanHiramatsu
      @RenanHiramatsu 4 года назад +4

      github.com/branflake2267/debugging-java-webapp

  • @manojtewari3814
    @manojtewari3814 3 года назад

    sir "hot code replace " icon is not appearing in my vs code. Other icons are appearing. Can you tell the reason...

    • @HenriqueAbrantesVitoi
      @HenriqueAbrantesVitoi 3 года назад

      try changing the settings java.debug.settings.hotCodeReplace to manual (default)

  • @andremyszko
    @andremyszko 3 года назад

    bravo!

  • @Jorvs
    @Jorvs 4 года назад

    I am using maven project using the frame work struts2
    having this error on debug mode..
    "Cannot find a class with the main method in the folder "
    may be am missing something.. i cant find the class main method if it had one..

    • @Jorvs
      @Jorvs 4 года назад

      feel free to correct me newbie here

    • @BrandonDonnelson
      @BrandonDonnelson  4 года назад +1

      When ever I get this error, the classes don't exist in the web app folder. With Maven you have to point to the target web app directory. Or if it is, the classes aren't being built and put in the target/[web app name]/WEB-INF/classes directory. I've found it takes some time to line up the pieces, but once you get the classes in the web app directory that's being run it should work fine.

    • @Jorvs
      @Jorvs 4 года назад

      @@BrandonDonnelson thanks i have coorected the problem forgot to comment but your video help me a lot..
      Months and was not able to debug a maven project in vs code..
      Your video help a lot thanks

  • @bakaleisanich
    @bakaleisanich 4 года назад +1

    😊👍🏻👍🏻👍🏻