cancel
Showing results for 
Search instead for 
Did you mean: 

Java Debugging of Work Manager 6.4

0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

0 Kudos

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.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

0 Kudos

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.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

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 Kudos

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.