Book a Demo

Author Topic: Anybody configured EA debugger for Java?  (Read 2868 times)

Taz

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • Imagine, sun, beach and financial freedom
    • View Profile
Anybody configured EA debugger for Java?
« on: May 07, 2008, 01:32:07 am »
I am getting very frustrated now after spending now over a week trying to configure the debugger in EA to work with java. Has anybody managed to configure it for java yet? I already posted a message about this in relation to generating Sequence Diagrams and also contacted Support, but so far no solution. If anybody could post any examples on how to configure it. Problem seems to be, that although I manage to run it, it doesn't seem to find the source code. I can see the source code and set breakpoints  in EA, but when debugging it, it gives the following error messages after loading the classpaths:


"Failed to find class Lcom/p1/p2/reporting".
"Failed to find class com/p1/p2/reporting".
"Failed to locate source file for class Lcom/p1/p2/reporting/RunReport;"
"Failed to locate source file for class com/p1/p2/reporting/RunReport;"
...

The strange thing is that the application seems to run fine as it then shows the exact output that is expected.


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Anybody configured EA debugger for Java?
« Reply #1 on: May 07, 2008, 07:56:11 am »
Yes, I know that many people have done this without any problems.  This includes me, although only for trivial test projects.

I really don't know a lot about the sequence diagram generation, but I do know that you need to have the code imported into EA first.  Have you done this?

Taz

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • Imagine, sun, beach and financial freedom
    • View Profile
Re: Anybody configured EA debugger for Java?
« Reply #2 on: May 09, 2008, 01:18:39 am »
I think I fixed the debugger now.  By using the full path to the source and binary files instead of relying on the root folder it is now working.  But only if I don't put breakpoints in the code or only in the class where the main() function is.  If I put breakpoints in any other class that is called by the main() function, the debugger throws again the same or similiar error messages that it doesn't find the class.