Re: STRDBG JAR

David Gibbs via JAVA400-L <[email protected]> Mon, 28 Nov 2022 19:18:53 -0600
Newsgroups gmane.comp.lang.as400.java
Message-ID <CAEStNX=Y0eqjTfc82YyBq8CZERGUAZKTLznOZ5miwPR1NwjP2g@mail.gmail.com>
Don’t use the green screen debugger.

Start the jar with remote debug parameters and attach your favorite Java
ide (or RDI, which includes a full java ide).

David

On Mon, Nov 28, 2022 at 4:52 PM Justin Taylor <[email protected]> wrote:

> I don't normally need to debug my Java code on IBMi.  Virtually always I
> can do that on my PC before I upload the JAR.  Now I had an existing JAR
> break when I upgraded IBMi from 7.3 to 7.5.  I've always explicitly set the
> JVM (jdk11/64bit), so the JVM didn't change during the upgrade.  I need to
> figure out why I'm suddenly getting a NullPointerException.
>
> When I do a STRDBG CLASS(), the Display Module Source screen tells me
> "(Source not available.)".  Do I need to specify something different on the
> command, or do I need to build the JAR differently to allow debug?
>
>
> TIA
> --
> This is the Java Programming on and around the IBM i (JAVA400-L) mailing
> list
> To post a message email: [email protected]
> To subscribe, unsubscribe, or change list options,
> visit: https://lists.midrange.com/mailman/listinfo/java400-l
> or email: [email protected]
> Before posting, please take a moment to review the archives
> at https://archive.midrange.com/java400-l.
>
> Help support midrange.com by shopping at amazon.com with our affiliate
> link: https://amazon.midrange.com
>
-- 
IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding in the American Diabetes Association's Tour de Cure to raise
money for diabetes research, education, advocacy, and awareness.  You can
make a tax-deductible donation to my ride by visiting
https://mideml.diabetessucks.net.

You can see where my donations come from by visiting my interactive
donation map ... https://mideml.diabetessucks.net/map (it's a geeky thing).

I may have diabetes, but diabetes doesn't have me!
-- 
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/java400-l.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com