Book a Demo

Author Topic: difficulties doing reverse engineering  (Read 2837 times)

mansour77

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
difficulties doing reverse engineering
« on: January 17, 2007, 07:07:13 am »
hello every body:
I have been stuck in this problem for few days. I need to do documentaion for some packages, and therefore I am interested in the reverse engineering functionalit and generating a sequence diagram.
I followed all the help that came with EA to do this, but out of luck. From my understanding I have to debug the dll then generate seq diagram from history. The problem I am facing is how to debug the dll ?? I am trying to create an instance of the class I want to debug. The constructor accepts two string arguments. The language I am using is vb.NET.  for example let's sa I need to debug myPackage.myClass  in myPackage.dll. I have to create an instance first through new (the constructor). Therefore, this is what I put in the run time variables field this:
myPackage.myClass,new,"string1", "string 2"

and then try to run deubg. But what i end up getting is :

17/01/2007 11::01 Default Directory is C:\VisualStudioProjects\pathToMySolution\
17/01/2007 11::01 Debugger CLR runtime version is v2.0.50727
17/01/2007 11::01 Process created \Device\HarddiskVolume1\Program Files\Sparx Systems\EA Trial\SSInvoke.exe running CLR version v2.0.50727
17/01/2007 11::01 Debug process in domain DefaultDomain
17/01/2007 11::01 Debug process in domain SSInvoke.exe
17/01/2007 11::01 Warning, all breakpoints failed to bind, check binaries built with debug information and source files synchronized with Model
17/01/2007 11::01 debug ends for SSInvoke.exe


One more thing, how do I debug a method ? How do I create and object of that class in order to run and deug that method ?


I reall need help in this as I have ran out of ideas.  ???



mansour77

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: difficulties doing reverse engineering
« Reply #1 on: January 17, 2007, 08:43:46 am »
OK, I think I am getting closer to what I want, but still not there. after I imported the dll I need to debug, I have setup the run/debug script. Now I went to the class I need to debig and created and instance of a workbench, but then when I invoke the constructor I get an error about the parameters or the code sync. I am passing the right parameters. Two strings. In the output window, I get this:

17/01/2007 12::41 Default Directory is C:\VisualStudioProjects\EcompV4_Backend\Upload45
17/01/2007 12::41 Debugger CLR runtime version is v2.0.50727
17/01/2007 12::41 Process created \Device\HarddiskVolume1\Program Files\Sparx Systems\EA Trial\SSWorkBench65.exe running CLR version v2.0.50727
17/01/2007 12::41 Debug process in domain DefaultDomain

Any ideas ?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: difficulties doing reverse engineering
« Reply #2 on: January 17, 2007, 02:11:04 pm »
I think the key to your problem is
Quote
Warning, all breakpoints failed to bind, check binaries built with debug information and source files synchronized with Model


It's suggested two possible problems.  I believe that the need for debug information doesn't need further explanation, so that leaves 'source files synchronized with Model'.

I also noticed in your second post the following 'after I imported the dll'.  If I am correct, this would be your problem.  EA needs the classes to be imported from the source in order to debug.  Importing the dll directly doesn't give sufficient information.  So I recommend importing the source into the model and trying again.