I have developed a small bean that I am calling remotely from ABAP. I have done the development work in the WebAS 6.40 Sneak Preview NetWeaver Dev. Studio. I cannot figure how (or even if it's possible) to debug this bean.
I have followed the instructions on debugging referred to elsewhere in this forum, but I'm hung up at the point where I'm to create a debug configuration. E.g., what kind of configuration should I specify? (EJB is not one of the choices.) If I try any of those that <i>are </i> available, I always get to a point where it says that it can't connect to the JVM. Well, that's not what I'm trying to do, is it?
Has anybody successfully done such debugging? If so, can you get me past this sticking point?
Thanks...
Hi David,
prerequisite to use debugging is, that the server you want to connect to runs in debug mode:
Open "Window->Show View->Other->J2EE->J2EE Engine". The configurated J2EE engine is displayed. Use the context menu of the "server0" entry to "Enable debugging of process". The server restarts then. If it's (already) running in Debug Mode, this is visible on the right side "Debug Mode = ON".
I suggest to define a "Remote Java Application" configuration like this:
Name: Whatever you like
Project: The project containing the classes to debug.
Connection Type: Standard
Host: Hostname or IP of J2EE server host
Port: 50021
Choose "Apply" and "Debug".
Set breakpoints for example by double-clicking on the frame on the left side of the Java editor (or using the context menu -> Add Breakpoint there). There's a very good documentation about debugger usage in the NWDS online help.
Trigger the remote call from the ABAP system. As soon as a line with a breakpoint is hit, the debugger displays the line and stops the active thread.
Hope that helps.
Regards
Stefan
PS: As soon as you don't need debugging any longer, disable debug mode of the engine, since it slows down everything.
Add a comment