简体   繁体   English

蚀调试

[英]eclipse debugging

Is there a way once you deploy an application via eclipse to tomcat to see the application step through in one of the console views as you navigate through the program on your browser?? 通过eclipse将应用程序部署到tomcat时,是否有一种方法可以在浏览器中浏览该程序时在一个控制台视图中查看该应用程序?

I guess watch it as it accesses certain methods? 我猜看它访问某些方法吗?

Thanks 谢谢

You can put breakpoints in the code and step through as you navigate through the browser, but it won't behave exactly as you are imagining. 您可以在代码中放置断点,并在浏览器中浏览时逐步执行,但是它的行为可能并不像您想象的那样。 It'll be a back and forth dance: 来回跳舞:

  1. Set a breakpoint on the server 在服务器上设置断点
  2. Use the browser UI to access the code 使用浏览器用户界面访问代码
  3. Hit the breakpoint on the server 击中服务器上的断点
  4. Check the status of variables 检查变量状态
  5. Set the next breakpoint 设置下一个断点
  6. Tell the server code to continue 告诉服务器代码继续
  7. Go back to 2 and repeat 返回2并重复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM