I'm trying to find out if there's a way to generate a sequence diagram from our Javascript code.
Either something like that does not exist (yet), or I can't seem to find the good Google query. I always end up with js-sequence-diagram, which is a tool to generate sequence diagrams using Javascript, but not from Javascript code.
Firebugs profiling tool is able to tell you which Javascript methods were called how many times in 1 profiling session. It can also tell you the file in which the Javascript method resides. This kind of tells me it should be possible..
Right click a Sequence Diagram and select Generate Code from Sequence diagram. To generate a Sequence Diagram containing code of an operation: 1. Click into the empty space of the Sequence Diagram, that contains code of an operation.
Lucidchart. Lucidchart is one of the highest-rated diagramming tools currently on the market. They offer a wide variety of diagram templates, a full shapes library, and impressive collaboration features.
I was thinking that profiling with with the Developer Tools (Chrome or whatever) might be the only way but then I saw the answers to this question: How can I reverse engineer my JavaScript files with js/uml?
"code2flow generates callgraphs"
I'll have to give it a try.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With