Book a Demo

Author Topic: Debugging a Java program with valid breakpoints ..  (Read 2435 times)

Dave001

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Debugging a Java program with valid breakpoints ..
« on: March 25, 2009, 07:03:56 am »
..  that are not causing the program to stop executing (break).  I can attach and run a program in debug with the breakpoints enabled and they indicate that they are working (i.e. the icons are solid red octagonal shapes).

However, the program does not stop at the breakpoint(s).  The output EA "System" and "Output tabs only show that EA attached:
Code: [Select]
24/03/2009 12::24 debug starts for C:\j2sdk1.5.0_12\bin\java.exe      

When I stop the debugger the the following two lines are shown:
Code: [Select]
24/03/2009 12::28 detach from process C:\j2sdk1.5.0_12\bin\java.exe      
24/03/2009 12::28 Debug session ends for C:\j2sdk1.5.0_12\bin\java.exe      

Code: [Select]
APP_JAVA_HOME is not set.  Trying JAVA_HOME ...
APP_JAVA_PROG is not set.  Trying JAVA_PROG ...
APP_JAVA_DEBUG_PROG is not set.  Trying JAVA_DEBUG_PROG ...
JAVA_HOME is now C:\j2sdk1.5.0_12
JAVA_PROG is now java
JAVA_DEBUG_PROG is now java
JAVA_CSTACK_SIZE is now -Xss256k
JAVA_JHEAP_SIZE is now -Xmx512m
ARGS[0] = C:\j2sdk1.5.0_12\bin\java
ARGS[1] = -DprogToRun
ARGS[2] = -Dsun.java2d.noddraw=true
ARGS[3] = -Xss256k
ARGS[4] = -Xmx512m
ARGS[5] = -Djava.compiler=NONE
ARGS[6] = -Xshare:off
ARGS[7] = -agentpath:"C:\Progra~1\Sparxs~1\EA\SSJavaProfiler71"
ARGS[8] = -Xms64m
ARGS[9] = -XX:MaxPermSize=128m
ARGS[10] = -Xdebug
ARGS[11] = -cp long list of directories

Is there anything special to include in the classpath?  I use the "Debug Script" from the Class Diagram level which is also "Package is Namespace Root".  The directory underneath the Script name is the directory to the class files of the program being debugged.

The program being debugged was compiled outside of EA, albeit with the debug compiler switch on.