How to debug a jsp file in eclipse




















How do you know Don is doing anything but debugging atm? A colleague of mine looking to debug a JSP commented on this answer when I sent him a link to the question: 'It's like "Quick - I need to get a fishhook out of my eye" "How did you get a fishhook in your eye? That's really not the kind of thing you should do with a fishhook I certainly realize that my 'answer' is not what the OP was specifically asking about, however I find that the "hey, maybe you should re-think your approach" answers are the ones that help me become a better developer.

I very rarely learned things in any of my uni classes when the instructor answered students questions literally. The real learning happened in the conversational side alleys that arose when the prof asked the student to think hard about why they were asking the question. I didn't create this code, this solution, just need to debug it, nothing else.

Chances are indeed high that he's doing something wrong. He wants to debug the JSP because he's not sure exactly what it is he's doing wrong. That's why he wants to debug. Even within a rigid MVC framework, you still need to see exactly where something is failing, or to explain which path of an "if" is being taken.

Show 1 more comment. Tracey Tracey 9 1 1 gold badge 1 1 silver badge 2 2 bronze badges. This doesn't work. Sign up or log in Sign up using Google. In eclipse, we have debugging tools to debug the errors or bugs in the code. We can set the breakpoints where the error or bug is occurring. Once they are set, the debugger will move to the first breakpoint and then next and so on.

It will run through the application with the help of breakpoints. We can restart the server in debugging by clicking on the server side and click on start in debug mode. Skip to content. Report a Bug. Then source the newly-modified. Now we can verify our Java process is listening on port with lsof -i. See an example:. You need to have the sources of the project you run remotely.

Choose your project in Eclipse Package Explorer. Set breakpoints in your code. Click Run - Debug Configurations. Choose Remote Java Application and then New from context menu right mouse click. Learn more. Asked 6 years, 9 months ago. Active 6 years, 7 months ago. Viewed 1k times. After building and compilation i'm getting ear file. I'm setting breakpoints on java code inside jsp file. Unexpected results may occur. Yury Kerbitskov. Yury Kerbitskov Yury Kerbitskov 1 1 gold badge 7 7 silver badges 20 20 bronze badges.

Why not use firebug for the javascript part in Firefox or the console in Chrome? I use this mixed mode alot and it works well. JFPicard, i need to debug Java code, not javascript code. Where are you setting your breakpoints?



0コメント

  • 1000 / 1000