Let me know if that helps or not.
n
--
You received this message because you are subscribed to the Google Groups "jswat-discuss" group.
To post to this group, send email to jswat-...@googlegroups.com.
To unsubscribe from this group, send email to jswat-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jswat-discuss?hl=en.
We've seen this occasionally, failure of breakpoints to bind.
In the breakpoints panel there's a column named "resolved" that can be revealed from the table control within the top-right of the panel decorations. This property will indicate the problem as an unresolved breakpoint. With some experience you'll notice that breakpoints get resolved some time after the class is loaded.
Of course the java compiler needs optimization turned off and debugging turned on.
If memory serves there may be another, exceedingly rare case when breakpoints fail to bind. Somewhere in the neighborhood of the JVM. Although off hand I can't recall / imagine what that is.
-john
I turned on the "Resolved" column for breakpoints. All are unchecked,
except for "Uncaught Exceptions".
I added the -Xint option to the resin command line.
I double checked my ant build.xml file. I found that debugging is
turned on, but so were optimizations, which I have since turned off.
Still not stopping on breakpoints.
I tried the previous version of JSWAT, which I have used for over a
year, and it too is no longer stopping on breakpoints set.
I don't know if this matters, but I now find that JSWAT is no longer
remembering to re-open files from session to session. For example, I
open fileA, exit JSWAT, launch JSWAT.exe, and the workspace is empty,
fileA is not automatically reloaded. I do see however, that the
breakpoints are still set.
I have also recently transitioned from Java 1.5 to 1.6
Might want to be sure you have a clean build, that all classfiles in the packages you're setting breakpoints in have been recompiled without opt and with debugging.
I recall some THREADS=native kind of env.var thing but not whether it's really related. Some problem with green threads in the runtime.
Might check in that direction?
All,
I have solved the problem. JSWAT is now able to resolve and hit
breakpoints.
In converting from Resin 3 to 4, they have changed the option for the
configuring interaction with a debugger.
Removing this option from the command line:
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000
And simplifying the command line to:
resin.exe gui -debug-port 5000
Solved the problem.
Thank you to all who helped.
-dj
On Fri, Sep 3, 2010 at 5:37 PM, dj <defen...@yahoo.com> wrote:>> Both the debugger and debuggee are on the identical JVM (software/version).Well let's look at that a bit.
JSWAT 4.5
In the jswat.conf file we have
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_21"
RESIN 4.0.10
I start with a batch file which looks like this:
set java_home=C:\Program Files\Java\jdk1.6.0_21
set resin_home=C:\resin-pro-4.0.10
resin.exe gui -classpath %classpath% -J-
Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true -Xms151m -
Xmx451m -verbose -Xdebug -Xint -
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000
Project:
I also explicitly set the java_home, as above.While I have recompiled my code, there are third party jars and so
forth that are of other version, even back to 1.4.2.
We only need to look into the binaries for packages for breakpoints. Otherwise of course if the JVM successfully loads the class, then it's good.
So the debuggee code is executing, just not stopping at breakpoints.
I see the jvm launcher "resin.exe". Perhaps this has a bug?
Better check on that, since you've said that you haven't had breakpoints since using this version of this launcher.
>> Both the debugger and debuggee are on the identical JVM (software/version).Well let's look at that a bit.
JSWAT 4.5
In the jswat.conf file we have
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_21"
RESIN 4.0.10
I start with a batch file which looks like this:
set java_home=C:\Program Files\Java\jdk1.6.0_21
set resin_home=C:\resin-pro-4.0.10
resin.exe gui -classpath %classpath% -J-
Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true -Xms151m -
Xmx451m -verbose -Xdebug -Xint -
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000
Project:
I also explicitly set the java_home, as above.
While I have recompiled my code, there are third party jars and so
forth that are of other version, even back to 1.4.2.