Results 1 to 2 of 2
  1. #1
    tommy is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default how to debug the servlet

    I use the "system.out.println" even if it is very silly way

    Is there any good way to debug it?
    I mean I want to see the message that I use the "system.out.println"

    thanks

  2. #2
    bbq
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Posts
    132
    Rep Power
    0

    Default

    What application server / web container do you use to run your servlet?

    What IDE / editor do you use?

    You need to figure out how to enable debugging support on your app server.

    Then, if you don't have one already, find an IDE that has a debugger. Eclipse is a free IDE that fits the bill. I don't use it myself, unfortunately, so I can't tell you how to use its debugger.

    Also, you need to make sure that you compile your servlet with debugging info: the -g option.

Similar Threads

  1. Servlet
    By banie in forum New To Java
    Replies: 6
    Last Post: 04-11-2008, 05:18 PM
  2. SciTE-debug 0.9.1
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 04-10-2008, 04:14 PM
  3. my first servlet
    By sireesha in forum Java Servlet
    Replies: 3
    Last Post: 04-09-2008, 03:11 PM
  4. Replies: 1
    Last Post: 08-07-2007, 03:47 PM
  5. how to debug java code in eclipse
    By rajesh058 in forum Advanced Java
    Replies: 3
    Last Post: 07-25-2007, 11:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •