Skip to Content
0

Java Debugging of Work Manager 6.4

Feb 17, 2017 at 09:16 AM

216

avatar image

Experts,

I am facing an issue while trying to debug java code in Work Manager. I have setup the debugging as mentioned in Debug SMP 3.0 Agentry Java in Eclipse. However, the debugger doesn't stop at break point. The server is in remote machine, how can i have the debugger stop at local code in eclipse?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Bill Froelich
Feb 17, 2017 at 02:52 PM
0

Are you sure the remote server is running with java debugging enabled? Do you see eclipse connected to the running instance in the Debug perspective?

--Bill

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Bill,

I presume the remote server is running since i can see the app working on remote server. How can i check if the eclipse is connected to the running instance ?

Thanks,

Alok.

0

But is the remove server running with debug enabled?

If you open the debug perspective you should see the remote server listed and the running processes.

--Bill

0

Hi Bill,

I don't see the remote server listed and running processes in debug mode, how do i enable it?

I have edited the config in go.bat to -debug port.

Thanks,

Alok.

0
Bill Froelich
Feb 20, 2017 at 05:44 PM
0

I usually start my server via the command

c:\SAP\MobilePlatform3\Server\go.bat -debug 8000

This will start the server listening on port 8000 for remote debugging requests. Then in Eclipse you need to define a Debug Configuration for a Remote Java Application that points to your server / port. Then when you run that debug configuration eclipse will attach to the SMP server and you can then set and stop and breakpoints.

--Bill

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Bill. I was able to get the debugging working by adding command line -Xdebug -Xrunjdwp:transport=dt_socket,address=7003(other than angel front end port),server=y,suspend=n to prop.ini file and also configuring host/port in eclipse.

Thanks for the guidance.

0