Book a Demo

Author Topic: Using Build and Run, Debug(Java)  (Read 4814 times)

smwolke

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Using Build and Run, Debug(Java)
« on: November 18, 2005, 12:14:10 pm »
any and all,

I am currently trying to use this new feature and was wondering what kind of success others have had and how? Since I am having very little.

I have a directory structure like

c:\project
  |
  |-src
  |-build
  |-lib

Then I fill in the "Build, Test, Execute Scripts" form.

Name:  MyProject
Directory:c:\project
Build-Cmd:
"c:\jdk1.5.0_05\bin\javac" -g -sourcepath src -d build -classpath lib/xmlpublic.jar; src/com/test/Test.java
Build-CaptureOutput:X Output Parser:Java SDK

Run-Run:
"c:\jdk1.5.0_05\bin\java" -cp lib/xmlpublic.jar;build com.test.Test.java param1 param2

Run-Debug:com.test.Test
Run-Vars:jre=C:\jdk1.5.0_05
Run-Use Debugger:Java

The build works. The run works.  But when I try Debug Run(F6) I get the EA Error "Class Not Found (see package settings)"  Not much to go on.

Any help is appreciated.


Steve

bruunj

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Using Build and Run, Debug(Java)
« Reply #1 on: November 18, 2005, 01:04:53 pm »
I am having a similar problem, but am using .NET.  The build and run work, but the debug will do nothing.

Run:
Run: "C:\Test\Test.exe"
Debug: Do I need to put something here?
Vars: Or here?
Use Debugger: Microsoft .Net

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Using Build and Run, Debug(Java)
« Reply #2 on: November 20, 2005, 05:14:34 pm »
Steve, what happens if you only include Test in the Debug field.  I don't think you need the full class path in there.

For .Net I'm pretty sure you don't need anything in the Debug or Vars fields.

bruunj

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Using Build and Run, Debug(Java)
« Reply #3 on: November 21, 2005, 09:43:40 am »
I have left the Debug and Vars field empty, and EA will simply not start the debug process.  Is there any other configuration that needs to be done for this feature to work?
« Last Edit: November 21, 2005, 09:44:30 am by bruunj »

smwolke

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Using Build and Run, Debug(Java)
« Reply #4 on: November 22, 2005, 11:22:37 am »
Quote
Steve, what happens if you only include Test in the Debug field.  I don't think you need the full class path in there.

Simon,

I put just "Test" in the Debug field and I still get the same thing.  


Another thing about this debug thing.  Does any one know how to pass parameters into the method main?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Using Build and Run, Debug(Java)
« Reply #5 on: November 23, 2005, 02:57:40 pm »
Have you imported your classes into your EA model before debugging?  You won't be able to debug anything that you haven't imported from the source code.

oandrade

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Using Build and Run, Debug(Java)
« Reply #6 on: November 24, 2005, 06:05:09 am »
hey Simon,

I got the same problem, i´ve been wasting a lot of time trying to solve this problem, but until now i keep the same thing. I´ve already imported the classes, and also changed the the debug field, everything suggested above...  Does any know where can i find some stuff like "Debuging Java App through EA 6". i´ve always catch the following message " Class not Found (see package settings)"

smwolke

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Using Build and Run, Debug(Java)
« Reply #7 on: November 29, 2005, 05:40:28 am »
Simon,

The source code for the classes that I wish to debug have been added to the model.  Though there are libraries that are being used that I do not wish to debug.  I am making the assumption, since the debug field is in the run section, the debugger is getting classpath information from the run field.  If that is not the case how does one specify the classpath for the debugger?

I have also made the source and build directories the same and still the build and run work but the debug does not.  Is there any way to get the console output of the debug session, like the build task, because it is very helpful in debugging the problem?


Steve

ThomasI

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Using Build and Run, Debug(Java)
« Reply #8 on: January 13, 2006, 06:25:17 am »
bruunj,

Did you ever get .NET debugging to work? My situation is just like what you describe. Build works. Run works. Debug: nothing happens.

bruunj

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Using Build and Run, Debug(Java)
« Reply #9 on: January 13, 2006, 08:07:44 am »
I haven't been able to get it to work.