Skip to Content

How to debug an Agentry java custom jar file in Eclipse?

Hello community

Today I want to asked them which is right way to configure JVM parameters in SMP 3.0 to debug my java agentry custom jar file.

In a post I found a recommendation which suggested put below lines in jvm section in props.ini file, so I did make it and restart the server

-Xdebug

-Xrunjdwp:transport=dt_socket,address=7090,server=y,suspend=n

When it finished, I inmediately launched a remote debugging from my local pc, I put Connection Standard Socket Attach Type, hostname and port.

I gotten success and eclipse was connected to server's jvm and I could see all task running asynchronuous, then I put breakpoints and sysout prints at the beginning of my methods. I have done references to BAPI and Handler and Objects classes in Notification on workmanager but don't get any thread take my breakpoints when I work out with Notifications.

In my research for resolving these problem, another post said me that will use server and suspend's jvm's parameters previously configured.

Here put the post for your review https://javarevisited.blogspot.pe/2011/02/how-to-setup-remote-debugging-in.html

Parameters

server=y,suspend=n, it does work correctly but don't entry my breakpoints

server=y,suspend=y, only work when I connect remotely to server jvm and continue its execution

server=n,suspend=n, it doesn't work at all even don't start SAP SMP service

server=n,suspend=y, it doesn't work at all even don't start SAP SMP service

Even I placed breakpoints in workmanager jar's classes waiting enter some method where it is currently falling but don't get any result.

Can anyone said me how I might caught a thread?

It might be something that I doing wrong?

Surely I not considering some step or avoiding something in settings.

Greetings

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 18 at 03:06 PM

    Hi Fernando,

    Please review the following KBA 2481728 - How to enable debug mode for SMP 3.0 Agentry application and the bottom of the KBA there is a Wiki link.

    --Subash

    Add comment
    10|10000 characters needed characters exceeded