应用程序引擎java:调试servlet
这可能是一个基本问题,但我在 eclipse 中使用应用程序引擎 开发一个 servlet 并想在那里调试我的应用程序 是一行代码,它使我的应用程序在某处绊倒并导致 它只输出服务器错误。我已经尝试过正确调试 单击并选择“调试为”-> Web 应用程序并打开浏览器 到 http://localhost:8888/ 并选择我的 servlet 但当我这样做时 没有看到eclipse indigo classic单步执行servlet的行 代码。而且我不知道在哪里可以找到包含有问题输出的日志文件。 有关如何继续进行应用程序引擎 servlet 调试过程的任何提示 受到高度赞赏。
谢谢,
约翰·戈奇
This may be a basic question but I am using app engine in eclipse
to develop a servlet and would like to debug my application as there
is a line of code which is tripping my application somewhere and causing
it to output nothing but a server error. I have tried debugging by right
clicking and selecting Debug As -> Web Application and opening a browser
to http://localhost:8888/ and selecting my servlet but when I do this I
do not see eclipse indigo classic step through the servlet's lines of
code. And I don't know where to find a log file with the offending output.
Any tips on how to proceed with the app engine servlet debug process would
be highly appreciated.
Thanks,
John Goche
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您希望能够在本地运行您的应用程序,则需要进行一些配置。打开
属性>项目的部署程序集
,并指定其结构如何映射到 Web 应用程序结构。然后以调试模式启动本地 tomcat(应用程序部署在那里)应该可以正常工作(除非您使用数据存储区)Your application needs some configuration if you want to be able to run it locally. Open
Properties > Deployment assembly
of your project, and specify how its structure maps to the web app structure. Then starting a local tomcat in debug mode (with the app deployed there) should work fine (unless you use the Datastore)