Lars,

>Does it make a difference, with regard to debugging, if using -jar
>orion.jar instead of com.evermind.server.ApplicationServer?

I always use com.evermind.server.ApplicationServer, I never tried -jar
orion.jar

>What do you mean by "files were compiled with netbeans"? Do I have to
>use the "internal compiler"?

if I build the entire system with the jdk1.2.2_006 from javasoft, then debug
with netbeans I get:

menuSelCodeQuery = >Name unknwo: menuSelCodeQuery<

within the watch variable, and I cannot see the value inside the variable

if I then tell netbeans to "build all" it changes to:

menuSelCodeQuery = (com.Delfour.ejb_app.sql.query.MenuSelCodeQuery) instance
of com.Delfour.ejb_app.sql.query.MenuSelCodeQuery(id=784)

and I can see the contents of the variable

I have it set to fastjavac compilation, I did not try other compile options

>From the JPDA doc: "True if the target VM is to be suspended immediately
>before the main class is loaded; false otherwise."
>So in my opion it doesn't help when using an application server and the
>method I want to debug isn't invoked directly by its main thread.

I tried it with suspend=n and it works as well

Hope this helps.

Rob Lapensee
Director of Technology
Delfour Corporation
[EMAIL PROTECTED]
www.delfour.com

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lars Heller
Sent: Thursday, October 26, 2000 4:37 AM
To: Orion-Interest
Subject: Re: Anyone using Forte + JPDA + Orion

Hi Rob,

> java -Djava.compiler=NONE -Xdebug -Xnoagent
> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5000
> com.evermind.server.ApplicationServer

>From Sun's JPDA doc / Connection and Invocation Deatils:
"The -Xnoagent and -Djava.compiler=NONE options are not required;
however, for compatibility, these options are accepted and ignored."

So, what is left is:
java -Xdebug
runjdwp:transport=dt_socket,server=y,suspend=y,address=5000
com.evermind.server.ApplicationServer

Does it make a difference, with regard to debugging, if using -jar
orion.jar instead of com.evermind.server.ApplicationServer?

> note that we use suspend=y

>From the JPDA doc: "True if the target VM is to be suspended immediately
before the main class is loaded; false otherwise."
So in my opion it doesn't help when using an application server and the
method I want to debug isn't invoked directly by its main thread.

> Also, if the .class files were compiled with netbeans it works ok, if
> they there compiled with jdk1.2.2_005 (NT) then they will not allow
> you to put a watch point on a variable (you will not be able to see
> it's contents).

What do you mean by "files were compiled with netbeans"? Do I have to
use the "internal compiler"?

Well, on thing I recognized: The breakpoint doesn't seem to be invoked
when I copied the compiled .class file to its destination under orion. I
had to compile it directly to this directory.

Lars


Reply via email to