Scott Klement skrev:
It *is* possible to step into Java from RPG, just not supported (AFIAK). Check out the message from Barbara Morris in the following thread:

Here's what I've noted (not sure exactly how true it is, but it's what worked for me)

a) Java code has to be compiled with -g to have debugging symbols.
b) Java code has to be run through CRTJVAPGM
c) the Java code has to already be loaded into the JVM. That means you can't step into the first method you call, you have to wait til the second call when the JVM is already started, and the class is already loaded.
d) It doesn't work from the same job. You have to STRSRVJOB/STRDBG if working from the green screen. From GUI it shouldn't matter, since you're automatically in a separate job :)

Anyway... it's tricky, and unsupported but possible...
If I understand you correctly you ensure that java classes are compiled to MI instead of allowing the JIT to compile on the fly, plus do some trickery to get the JVM loaded in the first place.

Do you know the technical reason for the debugger needing to run in a separate job? That JVM's are always multithreaded?

Anyway - sounds too brittle to my liking :( but glad you shared your knowledge.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.