Debugging Servlets & Jsps with Visual Slickedit's Java Debugger and JRun 3.1

From: Steve (nospam_at_please.reply.to.group.thanks.com)
Date: 12/15/04

  • Next message: German Gonzalez: "Eclipse, Sysdeo, Lomboz"
    Date: Wed, 15 Dec 2004 13:54:38 -0500
    
    

    Hi;

    I just spent a frustrating week figuring out how to get Visual
    Slickedit's excellent java debugger to work with web apps on JRun 3.1.

    I thought I would share in case someone else tries this and they are
    willing to search Google with its sucky new interface.

    Steve

    ------------------

    1. JRun 3.1 makes directories called "servers" which set up an
         environmet for "web apps" aka jsp web sites.

    2. I went to my JRun 3.1 installation directory and went to
         /servers/myserver/local.properties

    3. I added the following string ( one continuous line ) to java.args=
    -Xdebug -Xnoagent -Djava.compiler=NONE
    -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8201

    3A. the port number at the end is for the jre instance, not the Jrun
    3.1 server, so it has to be different then the port for the JRun 3.1 server

    4. I started the JRun 3.1 server "myserver"

    5. I brought the source code for the jsp in the JRun 3.1 cache ( where
    it turns the jsp into a severlet )

    6. I set a breakpoint ( I already had a blank java project set up )

    7. I did attach to remote vm with "localhost" and "8201" ( the port for
    the jre )

    8. I brought up the jsp site logged in, and then used "step over" to
    move throughout the site in debug mode.

    I hope this short note saves someone the week of hair pulling I went
    through :) .

    -- 
    Steve
    http://www.geocities.com/beforewisdom/
    Be a healthy Vegan or Vegetarian
    http://geocities.com/beforewisdom/Veg/healthyVeg.html
    "The great American thought trap:  It is not real unless it can be seen 
    on television or bought in a shopping mall"
    

  • Next message: German Gonzalez: "Eclipse, Sysdeo, Lomboz"

    Relevant Pages