简体   繁体   中英

app engine java: debugging 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

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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