Book a Demo

Author Topic: Reverse Engineering  a C#.NET Assembly --  (Read 6779 times)

Mohit Agarwal

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Reverse Engineering  a C#.NET Assembly --
« on: April 24, 2009, 02:55:05 pm »
Hi,

Can anyone tell me what Debug commnad we need to put in Package Script. As per the hep document i have given,but i am getting Unhandled Exception in the Command Window.

What are the rewuirements for it?

Please mail me  to [email protected]

Thanks in Advance

Kevin G. Watson

  • EA User
  • **
  • Posts: 217
  • Karma: +0/-0
  • I love EVERYTHING including Microsoft
    • View Profile
Re: Reverse Engineering  a C#.NET Assembly --
« Reply #1 on: April 29, 2009, 11:47:13 pm »
Hi'ya

I'm a tad confused. To reverse engineering an assembly you use 'Import Assembly' off the 'Code Generating' context menu. This takes the assembly and constructs a model of the content.

The 'debug' command enables you to get a Sequence Diagram view of your model executing.  I have yet to get into that.

Kevin

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Reverse Engineering  a C#.NET Assembly --
« Reply #2 on: April 30, 2009, 08:50:24 am »
I'll just add that if you have an assembly, you won't be able to debug the code in EA.  You need to have the source code for that.  (Although, as was mentioned, EA can reverse engineer structure out of an assembly.)

Mohit Agarwal

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Reverse Engineering  a C#.NET Assembly --
« Reply #3 on: May 04, 2009, 05:00:56 pm »
Hi,

Thanks for the reply..

Ok i understood that we cannot dubug the assembly directly.

But i have a source code whose output is a DLL,then how to debug it,in case if dont have any exe that uses this DLL?

Thanks in Advance!!!

Mohit Agarwal.


Mohit Agarwal

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Reverse Engineering  a C#.NET Assembly --
« Reply #5 on: May 06, 2009, 04:26:26 pm »
Hi,

Thanks again for the reply.

I have tried the same steps and in runtime variables i have included the Classname , function and the parameter to be passed.

But, when i debug it i am getting "Could not Load the Assembly" error.

Can u give me some clarity on it?

Thanks and Regards,
Mohit Agarwal.

Mohit Agarwal

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Reverse Engineering  a C#.NET Assembly --
« Reply #6 on: May 06, 2009, 09:59:13 pm »
IMPORTANT

Hi,

I have one more clarification.

How to debug a Dotnet Binary Module(.exe,.dll) and generate sequnece diagram out of it ?

Please reply to my mail if anyone is aware of it

Thanks and Regards,
Mohit Agarwal,
[email protected].

Mohit Agarwal

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Reverse Engineering  a C#.NET Assembly --
« Reply #7 on: May 18, 2009, 03:57:39 pm »
Hi,

I have one more issue:-

I have a code for which i have debugged and generated the sequence diagram earlier.

But now again with out any change in the code when i tried to work on the same code i am getting the following error whle debugging in EA

"SSProfiler5_70.exe has encountered a problem"

But i am able to run the code in EA successfully.

Does anyone know about this issue?

Can anybody please tell me the solution for the previous post?



Waiting for your reply.

Thanks and Regards,
Mohit Agarwal,
[email protected]