debugger doesnot stop at breakpoints while debugging Jenkins core in Intellij

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

debugger doesnot stop at breakpoints while debugging Jenkins core in Intellij

varun vikas
Hi,

I am trying to remote debug Jenkins core code.
I run command java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 jenkins.war
jenkins started successfully on port 8000.

Now I do remote debugging and set some breakpoints , but debugger is not stopping at breakpoints.
I am not able to find out , what may be the issue.

I have set breakpoints in jenkins\core\src\main\java\hudson\WebAppMain.java file.

Thanks,
Varun

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a3065164-03d4-4c29-8426-70325dc824f3%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: debugger doesnot stop at breakpoints while debugging Jenkins core in Intellij

Manuel Ramón León Jiménez-2
Could you change the address to 5000 and remote debugging on this port?


On Tue, Sep 3, 2019 at 8:25 PM varun vikas <[hidden email]> wrote:
Hi,

I am trying to remote debug Jenkins core code.
I run command java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 jenkins.war
jenkins started successfully on port 8000.

Now I do remote debugging and set some breakpoints , but debugger is not stopping at breakpoints.
I am not able to find out , what may be the issue.

I have set breakpoints in jenkins\core\src\main\java\hudson\WebAppMain.java file.

Thanks,
Varun

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a3065164-03d4-4c29-8426-70325dc824f3%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CADN1OJ0y071ceTvpvuwZaOeyZ80QhrHAEigry609Q0G%3DHUDh%2Bg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: debugger doesnot stop at breakpoints while debugging Jenkins core in Intellij

Ulli Hafner
In reply to this post by varun vikas
Try to start with suspend=y (it will suspend the VM until the debugger has been attached).

Then start the debugger and see if the Jenkins process starts correctly. If not, then your port in the debugger configuration needs to be adjusted.

Am 03.09.2019 um 20:25 schrieb varun vikas <[hidden email]>:

Hi,

I am trying to remote debug Jenkins core code.
I run command java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 jenkins.war
jenkins started successfully on port 8000.

Now I do remote debugging and set some breakpoints , but debugger is not stopping at breakpoints.
I am not able to find out , what may be the issue.

I have set breakpoints in jenkins\core\src\main\java\hudson\WebAppMain.java file.

Thanks,
Varun


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a3065164-03d4-4c29-8426-70325dc824f3%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/045D7856-9231-4AF8-B3C4-EE87C60CC3C0%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: debugger doesnot stop at breakpoints while debugging Jenkins core in Intellij

varun vikas
 Thanks @Hafner and @Manuel.

After making change suspend=y. and address=5000
It starts working.

Thanks,
Varun

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/f96ce9e2-972b-4987-ab5a-dfd0a4c53601%40googlegroups.com.