有没有办法一一检查程序的流程?
我需要从 JSP 文件(或者是 JSF)制作一个序列图,其中还包括 xhtml 和 java 文件。
我之前所做的是转到 faces-config.xml 并查看编译器将首先开始部署哪个文件。然后,从那里开始,我将一一讨论功能。
如果我有一个巨大的项目文件(这是我创建其序列图的任务),这是一项非常累人的工作。
我的问题是,是否有任何自动化的或至少是一种简单的方法来读取程序,就像它以慢速运行一样?
我使用 netbeans 7.0.1 作为 JavaServer Faces 编译器的 IDE。
I need to make a sequence diagram out from JSP file (or is it JSF) which also includes xhtml and java files.
What I did before was to go to faces-config.xml and see which file the compiler will start to deploy first. Then, from there, I will go to functions one-by-one.
It's a very tiring work if I got a massive project file (which is my assignment on creating its sequence diagram).
My question is, is there any automated or at least an easy way to read the program as if it was running at a slow pace?
I'm using netbeans 7.0.1 as the IDE for JavaServer Faces compiler.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然,这就是所谓的“记录”。
如果您不想手动执行此操作,则可以使用 AspectJ 等工具来检测应用程序的所有方法并自动执行此操作。
有一些工具,例如 Architexa,可以集成到 IDE 中,执行或多或少相同的操作,但不是在运行时(AFAIK)。
Sure, it's called "logging".
If you don't want to do that manually, you could use a tool like AspectJ to instrument all of your app's methods and do this automatically.
There are a few tools, like Architexa, that integrate into IDEs that do more or less the same thing, but not at run time (AFAIK).