× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




I've only had luck debugging Java using STRSRVJOB and STRDBG, and then I have to get timing right as the JVM has to be running before I can let the debug session know which class I want to debug! I can not get RDi to debug any Java unless I call the Java directly from RDi. (I'm on 9.1.1.1 with v6r1, but I don't think there is any difference to v7r1 in this area.)

This would be a nice thing to have, especially as it is possible with the older tools.


Paul.


-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Pilski Radoslaw
Sent: 15 June 2015 08:02
To: WDSCI-L@xxxxxxxxxxxx
Subject: [WDSCI-L] RDP 9.1.1.1 stepping into Java method call in debugger

Hi all,

I am wondering if it is possible to debug Java programs running on IBM I v7r1 using RDp 9.1.1.1 debugger (license "RPG and COBOL Tools")?

Recently I've tried to use RDP 9.1.1.1 debugger to debug a java method call invoked from RPG.
I set up a SEP on RPG code and then tried to step into a java method call. After issuing the step into command the debugger was unresponsive for a moment but finally showed a call stack, but it stepped into RPG procedure that was called from a java method. Java method calls I was intending to debug were shown in the call stack view so I clicked one method, but instead of source file the debugger displayed a window with the message "The selected stack frame is not debuggable".

I added the Java source directory to the Source Lookup Path so it is rater not the problem.
The java classes were compiled in eclipse with all the debug information in them (I've verified that with javap -v on IBM i) and I can debug the classes in eclipse (when run in eclipse runtime environment).
The JVM is started by RPG with the -debug flag.

The IBM i version is V7r1.

I also looked at the Graphical IBM i debugger documentation but it seems to be missing the SEP functionality which is quite important in my case because the processing is being done in a batch job.

Thanks,
Radek Pilski




Krajowy Depozyt Papierów Wartościowych Spółka Akcyjna z siedzibą w Warszawie (00-498) przy ulicy Książęcej 4, wpisana do rejestru przedsiębiorców prowadzonego przez Sąd Rejonowy dla m. st. Warszawy, XII Wydział Gospodarczy Krajowego Rejestru Sądowego, pod nr KRS 0000081582, NIP 526-10-09-528, wysokość kapitału zakładowego i kapitału wpłaconego - 21.000.000 zł.

The Central Securities Depository of Poland (KDPW), registered office: Warsaw 00-498, 4 Ksiazeca Street, entered in the Company Register by the Warsaw District Court, 12th Commercial Division of the National Court Register, KRS Register no. 0000081582, VAT no. 526-10-09-528, share and paid-in capital PLN 21,000,000.

--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2024 by midrange.com 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.