views:

1528

answers:

5

Is there a tool that can generate sequence diagrams from running .NET code?

A: 

I researched this a while ago myself and I think SDE does what you need I think (I was unable to convince management to follow through on the research, but the demo looks good)

Edit: oh and try visual uml too.

annakata
Thanks, I'll take a look.
Ben Aston
A: 

What do you mean? Determine from the runtime execution path the sequence diagram? I do not believe it possible.

If you mean to create sequence diagram from code and data then the GoDiagram tool from Northwoods can create really complex diagrams and I believe sequence diagram are certainly doable. And, BTW, collecting the proper diagnostic data you can also solve the first problem...

massimogentilini
Enterprise Architect will do this from a debugging session.
Jim Anderson
+2  A: 

Enterprise Architect will generate sequence diagrams from running code. You set break points where you want your diagramming to begin and end and then run the code and it will give you a sequence diagram of the code that ran. I have done this successfully with C# code.

Here are the instructions from the user guide.

Jim Anderson
this sounds like a solid albeit expensive tool
annakata
I have found it useful. Both of my last two clients have purchased it so I've never had to pay for it.
Jim Anderson
A: 

I don't know about .NET, but you can try Reverse Java (www.reversejava.com) for doing the same for any Java application

Rajesh Jadhav
+1  A: 

Enterprise Architect made by Sparx Systems works well for generating sequence diagrams from code. It basically records (based on your start/end points) the runtime and spits out a sequence diagram. They even have a video demo of it somewhere on their site. I think EA is between $200-$300 bucks, but a great tool non the less.

This video demo shows how to setup source/debugging in EA and at the end you see how to generate a sequence diagram.

initdotd