Book a Demo

Author Topic: Debugger  (Read 4279 times)

pirlina

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Debugger
« on: April 21, 2006, 09:00:08 am »
Hi, I have a big problem: when I try to start a debug session, after configured it as on manula, I always get "OnDebugRun failure".
Please, any suggestion?

Thank you

Claudia

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Debugger
« Reply #1 on: April 23, 2006, 03:06:30 pm »
We'll need more information before we can help.

What language/version are you attempting to debug?  Has the source code been imported into your model?
Has it been compiled correctly?

agudenus

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Debugger
« Reply #2 on: April 26, 2006, 08:12:16 am »
Hi

We have got the same problem. Our setup looks like this:

- Java 1.5
- EA 6.1 Corporate Ed.
- MDG Link for Eclipse 1.1.19
- Source reverse engineered with MDG Link for Eclipse

We are trying to debug a junit testcase to record a sequence diagram.

When we run "test" it works, but the settings for debugging a testcase are not really intuitive ;)

Maybe we have to write a main method for running the testcase?

thx for your help

lidia & alex

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Debugger
« Reply #3 on: April 26, 2006, 02:54:15 pm »
To debug a test case you'll need to reverse engineer your JUnit code, and set up a build/run/debug script specific to that.

agudenus

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Debugger
« Reply #4 on: April 27, 2006, 12:54:58 am »
We did that!

I suppose the script is wrong:

test:
java -ea -Xmx512m -cp "very long classpath" junit.textui.TestRunner %N

run:
java -ea -Xmx512m -cp "very lonmg classpath" junit.textui.TestRunner TestXMLWithoutContainer

debug:
TestXMLWithoutContainer

vars
jre="C:\Program Files\Java\jdk1.5.0_05\jre\bin" -Djava.class.path="very long classpath"

it seems that ea can find the testclass but is not able to execute it.

Any hints?

thx

alex

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Debugger
« Reply #5 on: April 27, 2006, 03:41:47 pm »
No great ideas.

What command line would you use to debug it using the JDK directly?