Eclipse - showing full call stack (like when it hits breakpoint in debugger) without putting in breakpoints?

前端 未结 6 1210
春和景丽
春和景丽 2020-12-09 11:06

I\'m working with a legacy Java app that is new to me so one way to figure out how it works and find things easier, I have thought would be to be able to get the full stack

6条回答
  •  失恋的感觉
    2020-12-09 11:58

    Another trick you can use is to figure what classes you know that have to be involved in the code path you are trying to trap. For instance, you mentioned that it's a Java EE web app and therefore the action is likely some kind of a servlet interaction (at some level). I don't have the API in front of me, but you can place a breakpoint on the method in the response object where the output stream is retrieved. Once that breaks, you will know the code that's trying to service the request.

提交回复
热议问题