3.8 Servlet Debugging
1. Use print statements.
2. Use an integrated debugger in your IDE.
3. Use the log file.
4. Use Apache Log4J.
5. Write separate classes.
6. Plan ahead for missing or malformed data.
7. Look at the HTML source.
8. Look at the request data separately.
9. Look at the response data separately.
10. Stop and restart the server.
本文介绍了Servlet调试的十项实用技巧,包括使用打印语句、集成IDE中的调试器、利用日志文件、采用Apache Log4J等方法,帮助开发者有效定位并解决Servlet应用中出现的问题。

被折叠的 条评论
为什么被折叠?



