Book a Demo

Author Topic: Generate sequence diagram from existing code  (Read 5662 times)

ashish

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Generate sequence diagram from existing code
« on: September 08, 2009, 10:24:09 pm »
I am trying to generate sequence diagram from existing code of a web application . I have imported all the code in EA but when I am trying to set the build script for debug, I am supposed to enter path of the application executable. But as I have mentioned this is web application so there is no exe.
So please let me know how I can do this with web application.

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: Generate sequence diagram from existing code
« Reply #1 on: September 10, 2009, 09:29:18 pm »
EA needs to run a debugger, if the debugger can run the project I guess you will see the classes and their interactions.
Have you created a build script for EA?
« Last Edit: September 10, 2009, 09:29:54 pm by MartinT »
Recursion definition:
If you don’t understand the definition read "Recursion definition".

ashish

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Generate sequence diagram from existing code
« Reply #2 on: September 11, 2009, 04:53:09 pm »
Thanks for your reply.

In EA help I was able to find how to debug asp .net application. I have created a build script. However I am not able to attach to the either the asp .net process or the internet explore process. When I click on the start button, the 'attach to process' dialog appears. When I select a process and click on ok, nothing happens. The stop button is not enabled. Please let me know if you have any idea.

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: Generate sequence diagram from existing code
« Reply #3 on: September 12, 2009, 02:52:57 am »
Are you trying to run it from VS and attach to process? If so it didnt work for me either, I ran the debug from within EA after filling all required data for the script.
Recursion definition:
If you don’t understand the definition read "Recursion definition".

dk

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Generate sequence diagram from existing code
« Reply #4 on: September 15, 2009, 01:10:27 am »
Same problem here. Nothing happens after attaching to "aspnet_wp.exe".
 An error message would be nice.

I had it working a year ago but don't remember what I did. I'm trying to debug an ordinary asp.net web page but the documentation says: "...Debugging for web services such as ASP...". Does that mean we can only debug web services, not asp.net pages?

Thanks for your help

dk

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Generate sequence diagram from existing code
« Reply #5 on: September 15, 2009, 07:20:59 pm »
Did anyone manage to debug asp.net web pages? What setup does work?

I'm now trying for hours with no success.
There seem to be others having the same problem. But none of these threads describe how one has to set up debugging :

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1249917126
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1236701781
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1237492102
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1239116598

I have Windows XP SP3, IIS 5.1, .Net 3.5, EA 7.5.846 Professional.

I created a simple Web Site in Visual Studio 2008.
The build script in EA seems to work (i.e. build return code is 0).
In the run script i put "http://localhost/Web/" and when I run (Ctrl-Alt-N) EA opens the page in Internet Explorer.
No deploy script. no test script.
Debug script is configured to "attach to process"
When starting debugger from EA I attach to aspnet_wp but nothing happens.
Attaching to aspnet_wp from Visual Studio 2008 works.

chasmopolitan

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Generate sequence diagram from existing code
« Reply #6 on: September 15, 2009, 10:47:22 pm »
FWIW, a colleague sent me this link to a great demo at:
http://www.sparxsystems.com/resources/demos/debuggingcs/debuggingcs.htm

dk

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Generate sequence diagram from existing code
« Reply #7 on: September 16, 2009, 12:43:49 am »
Thanks for this. There is even a tutorial for ASP.Net Debugging here:
http://www.sparxsystems.com/resources/demos/ASP_Net/ASP_NET.htm

I followed this example but still no success.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Generate sequence diagram from existing code
« Reply #8 on: September 16, 2009, 08:59:08 am »
If you have not yet done so, perhaps you could submit a bug report to Sparx Support, using the link at the bottom of this web page? (The link is in the Support column.)
Best Regards, Roy