开发者

How to debug into response.addCookie(...)?

开发者 https://www.devze.com 2023-02-06 03:55 出处:网络
i have a struts application in a jboss server. i would like to be able to debug into response.addCookie(...) when working from Eclipse.

i have a struts application in a jboss server. i would like to be able to debug into response.addCookie(...) when working from Eclipse.

what do I have to do to be able to press Step Into from Eclipse, in a Struts action, when its doing response.addCookie(...) ?

I did try to press Step into and it sayd "Source not found". Then I pressed the "Edit source lookup path..." button, choose "Add source", "External Archive" and开发者_如何学Go pointed to the downloaded source code of JBoss "jboss-4.2.3.GA-src.tar.gz"

What am I missing ?


Put a breakpoint on HttpServletResponse#addCookie().

If your concrete problem is that you don't have the source code, you need to download it for the servletcontainer in question first (if it is open source, JBoss is) and then include it in Eclipse.

0

精彩评论

暂无评论...
验证码 换一张
取 消