facebook

JSP debugger doesn’t kick in on exception [Enhancement]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #199580 Reply

    kaig1969
    Member

    I have a webapp which produces an exception. I run it in Tomcat 5 under MyEclipse control. I surf to the *.jsp that does this. The browser shows me a nice stacktrace.

    But there is no trace of that stacktrace to be seen in Eclipse!

    I expected that I could just click on a filename/linenumber somewhere to see which code caused the exception.

    So I vaguely remembered the “breakpoint on exception” feature from Eclipse, so I set a breakpoint on ServletException. This kinda works — the debugger does kick in. But I can’t find the line in my code anyway, because the exception it shows me is not the “root cause”.

    What do I do?

    An example webapp can be found under http://www.emptydomain.de/kai/taglibtest.zip. I just zipped up the corresponding subdir of my Eclipse 3.0M4 workspace. Surf to the *.jsp file included there.

    tia,
    Kai

    #199610 Reply

    Scott Anderson
    Participant

    Kai,

    It appears that your domain isn’t available for downloading the zip. Since you’re using Tomcat 5, can you just set a few breakpoints in your JSP page and then step through it until the exception is thrown?

    –Scott
    MyEclipse Support

    #199623 Reply

    kaig1969
    Member

    > [The zip file can’t be downloaded]

    I just tried from the company, and now it works. Hm.
    http://www.emptydomain.de/kai/taglibtest.zip
    Ah! Clicking on the link in my post doesn’t work because of the trailing dot. Sorry.

    > [Set breakpoint in JSP and step]

    Of course I can do that, but I’m so *lazy* 😉 Don’t get me wrong: I’m quite happy with the product. It’s just that when I taste something good, I want more. Also, I thought I might have missed a simple button or menu item somewhere.

    Thank you for such a wonderful product.

    Kai

    #199631 Reply

    Scott Anderson
    Participant

    Kai,

    Of course I can do that, but I’m so *lazy* 😉 Don’t get me wrong: I’m quite happy with the product. It’s just that when I taste something good, I want more. Also, I thought I might have missed a simple button or menu item somewhere.
    Thank you for such a wonderful product.

    I certainly understand and thanks for the kudos on the product. We’re working on some big additions for the next two months so it will only get better. As far as ‘missing a button’ or something. You haven’t; you’ve just found the current limits of the debugging support. I’ve entered an enhancement request for the issue you mentioned.

    –Scott
    MyEclipse Support

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSP debugger doesn’t kick in on exception [Enhancement]

You must be logged in to post in the forum log in