1. 在java中添加断点。
2. 启动myeclipse的tomcat服务器,是debug模式的,即debug server.
3. 浏览器中启动访问后,弹出debug视图,执行到断点位置。
4. 调试快捷键,F6 (step over), F5(step into), F7(return function),F8(execute to end);
5. 调试期间,可以查看variables视图,查看变量值。(window->show view->variables).
6. stop server,停止调试。