Question about debugging

Here's my situation:

I have my project compiled to JDK version 1.3.1

I have my default JVM at 1.4.1_02 (DOS prompt, java -version).

When I run my project (shiftF10), it works just fine. Everything starts up and I can use all of the servlets, JSPs, etc. However, if I terminate the run and then try to debug my project (shiftF9), nothing starts.

If I then run my project and specify the debug startup parms (-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005), and then REMOTEly debug against it, everything works.

I suspect what's happening is as follows: My default JVM is 1.4.1_02 and IDEA is running under it. When I try to debug my 1.3.1 project Tomcat spawns a separate 1.3.1 JVM; thus they are in two JVM's. This may explain why I'm able to remotely debug to the Tomcat running in the 1.3.1 JVM.

I think the solution is to uninstall the 1.4.1_02 JVM and intall the 1.3.1 version -- this will likely allow me to not have to run Tomcat and then remotely debug in IDEA.

The bottom line appears to be that when the compile version of my project matches the default JVM on my machine, everything works.

Is this a problem with IDEA or is it just my environment?

0
Avatar
Permanently deleted user

What's the exact version of your 1.3.1 JDK? If it is 1.3.1_07+ then make sure you are not using classic VM when debugging (File |
Project Properties| Debugger | Force classic VM)


--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"



0
Avatar
Permanently deleted user

My exact JDK is 1.3.1_08. Your solution solved it. Thank you.

0
Avatar
Permanently deleted user

Yep, this is caused by the jdk bug introduced in 1.3.1_07.
In IDEA build 706 we'll prohibit debugging with classic VM for this JDK and higher versions. This is sad, because hotspot debugging
in 1.3.x jdks has problems and debug is stable (and much faster) only when VM is in "classic" mode. So I recommend that you use at
least JDK 1.3.1_06 for debugging.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"




0
Avatar
Permanently deleted user


"Eugene Zhuravlev" <jeka@intellij.com> wrote in message
news:bcv79m$85n$1@is.intellij.net...

Yep, this is caused by the jdk bug introduced in 1.3.1_07.
In IDEA build 706 we'll prohibit debugging with classic VM for this JDK

and higher versions. This is sad, because hotspot debugging

in 1.3.x jdks has problems and debug is stable (and much faster) only when

VM is in "classic" mode. So I recommend that you use at

least JDK 1.3.1_06 for debugging.


You mean at MOST, so don't go HIGHER than _06 otherwise you hit the bug...
right?

R


0
Avatar
Permanently deleted user

You mean at MOST, so don't go HIGHER than _06 otherwise you hit the bug...
right?


Yes, sure :)

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"



0

请先登录再写评论。