debug JSP from eclipse

前端 未结 4 670
南方客
南方客 2020-12-05 01:53

Does anyone know of a good tool for debugging JSPs from within Eclipse? I\'d like to be able to set and watch breakpoints, step through the Java code/tags, etc within Eclips

4条回答
  •  半阙折子戏
    2020-12-05 02:26

    If you are having to use a debugger in a JSP, chances are very good that you are doing things in the JSP that you shouldn't be. I recommend that you think very hard about whether your current implementation is using good MVC design practice. JSPs really should be about presentation, which should rarely (if ever) require debugging.

    If you have certain logic constructs that you are having to implement in JSP, consider implementing them using a custom tag (which is easy to debug in an IDE), or do the processing in controller servlet that presents the data in an easy to digest form for the JSP.

提交回复
热议问题