Java Spring Boot - Remote Debugging in IntelliJ - Configuration

Java Spring Boot - Remote Debugging in IntelliJ - Configuration

CodeForgeYT

3 года назад

18,539 Просмотров

Extend your programming skills with remote debugging! In this video we will learn how to use Remote Debugging in IntelliJ IDE. We will start with building deployable fat jar file. After this we will start our web service from fat jar with special arguments. Those arguments will expose socket for remote debugging session. Later on we will configure remote debugging in IDE and attach our source code to the application running on JVM. Going further, we will set breakpoint to test out if we have successfully connected and if we are able to debug our application. Keep playing with code!

Follow //CodefForgeYT on:
FB: https://www.facebook.com/codeforgeyt/
Twitter: https://twitter.com/codeforgeyt
GitHub: https://github.com/codeforgeyt
Instagram: http://instagram.com/codeforgeyt

Тэги:

#java #spring #boot #debug #break #point #breakpoint #session #socket #address #configuration #jvm #jdk #argument #arguments #debugging #bug #expose #configure #step #into #stop #find #remote #host #port #attach #source #code #to #process #application #hot #swap
Ссылки и html тэги не поддерживаются


Комментарии:

Manish Kumar
Manish Kumar - 12.01.2023 08:13

Thank you so much for this wonderful session.

Ответить
Kiters Refuge
Kiters Refuge - 04.11.2022 19:01

Lovely. For once a clear demo that works first time as I follow it. If only @Jetbrains could be this clear in their doco!

Ответить
Luiz Felipe
Luiz Felipe - 09.08.2022 17:23

Hello, hanks for the video. Gave me an idea on the subject, but I'm having problems...

When I run the command java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar middleware-portall-yupi.jar

I get the error:
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.joran.util.PropertySetter@61386958 - Could not invoke method addDestination in class net.logstash.logback.appender.LogstashTcpSocketAppender with parameter of type java.lang.String java.lang.reflect.InvocationTargetException
ERROR in net.logstash.logback.appender.LogstashTcpSocketAppender[ELK_TCP] - No destination was configured. Use <destination> to add one or more destinations to the appender

The ELK is an environment variable, but I don't know how to pass it to the remote debugger configuration. I think this is causing the error.

Ответить
Darius V
Darius V - 14.04.2022 13:09

I went to that jaspersoft link and it really gives in json "Item third-party-ce-artifacts:) does not exist" what the hell? What to do then? How does project work if there is no such item? Or the IDE tries to download from wrong place

Ответить
Aniruddha Chitley
Aniruddha Chitley - 25.03.2022 07:45

Very informative video. Precisely the one I was looking for. Thanks alot!

Ответить
Александр Сащенко
Александр Сащенко - 18.10.2021 12:02

Thanks mate. Clearly understood it.

Ответить
Kr Singh
Kr Singh - 18.09.2021 19:25

Thanks for the video, please let me know.. how could we do remote dubugging for war file ?

Ответить
Kgaoza Gp
Kgaoza Gp - 29.06.2021 17:18

Thank you for the tutorial!

Ответить
Larry Spencer
Larry Spencer - 19.12.2020 00:27

Both Java and IntelliJ are fairly new to me and I am working on a Java web service that someone else wrote, but thanks to your video I was able to succeed with debugging on the first try! Thank you so much.

Ответить
samoon ali
samoon ali - 24.11.2020 22:54

Awesome... Thank you so much

Ответить
Fz
Fz - 06.11.2020 05:09

Concise yet very informative video. Thank you!

Ответить
Safnas Othayoth Chakkara
Safnas Othayoth Chakkara - 20.09.2020 14:44

Only working thing in whole world

Ответить
Anna Sel
Anna Sel - 15.07.2020 19:03

Thank you so much!

Ответить