Eclipse - Debug does not work, help ?? what am I doing wrong ? [message #242645] |
Wed, 19 May 2004 15:56 |
Eclipse User |
|
|
|
Originally posted by: steve_mew.hotmail.com
I have OfBiz 3.0 setup for development in Eclipse 2.1.3
a.. It builds fine with Ant
a.. I can run it from within the IDE "Run -> Run ->
org.ofbiz.base.start.Start"
a.. I CANNOT debug it. "Run -> Debug-> org.ofbiz.base.start.Start" - I am
stumped.
1. From within the IDE I have active focus in the Start.java file
2. IDE Main Menu - Select "Run -> Debug -> org.ofbiz.base.start.Start"
3. Set a breakpoint at line 300 in Start.java ;
"System.out.println("[no config] --> Use default config");"
4. Go to the menu and set program arguments to be '-?' to ensure we
execute the help code path in main()
5. Select "Run -> Debug -> org.ofbiz.base.start.Start"
The output I get is as expected (5 Lines of output):
Usage: java -jar ofbiz.jar [command] [config] [config arguments]
-help, -? ----> This screen
-start -------> Start the server
-status ------> Status of the server
-shutdown ----> Shutdown the server
But...the IDE hasn't intecepted the breakpoint in the IDE. In the debug
menu all the debug options are greyed out (Step into, Step Over etc etc) The
options on the Run manue to start a Run / Debug process are still available
which should not be the case, they should be greyed out as I just ran a
Debug session.
Looking at the Windows 2000 Task Manager I can see that there is a new
javaw.exe process running - This it appears is my orphaned OfBiz process.
Why is my breakpoint not giving me an interactive step through debug mode
?
Can anyone help ? It would be greatly appreciated...
Many Thanks
s
|
|
|
Powered by
FUDForum. Page generated in 0.23698 seconds