Using a debugger on a JSP page

S

Steve

Hi;

I am using the Visual Slick Edit java debugger on a jsp page running in
jrun 3.1.

I am using a *.java file ( containing the servlet code underlying the
jsp ) as the source file. The source file is on another machine, with
the site. I am using the "attach remote vm" feature.

I have been practicing with the same jsp/java file

Sometmes the debugger will tell me the value of objects in the jsp/java
file. Other times it will get this message in the watch "Cannot
evaluate expressions".

Same file, same server, sometimes I get this message, sometimes I don't.

Any ideas about what I would need to do to consitently see the value of
the objects?

Thanks in advance for any info
--
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"
 
S

Steve

Steve said:
Hi;

I am using the Visual Slick Edit java debugger on a jsp page running in
jrun 3.1.

I am using a *.java file ( containing the servlet code underlying the
jsp ) as the source file. The source file is on another machine, with
the site. I am using the "attach remote vm" feature.

I have been practicing with the same jsp/java file

Sometmes the debugger will tell me the value of objects in the jsp/java
file. Other times it will get this message in the watch "Cannot
evaluate expressions".

Same file, same server, sometimes I get this message, sometimes I don't.

Any ideas about what I would need to do to consitently see the value of
the objects?

Thanks in advance for any info


I figured this out on my own and I thought I would post my answer for
those coming after me who search google's archives:



I fixed this problem. I am not sure if all of these steps are
necessary, but by doing them all I have been able to consistently make
the debugger work for debugging jsps, servlets running in JRun 3.1 on a
remote server.

1. Reboot VSE 9.04 if another debugging session took place.

2. Flush the JRun cache. Run the site to rebuild the *.java files
JRun will generate for each jsp.

3. Add these files, plus other *.java files ( from your sites custom
..jars, servlets etc ) to a VSE Java-Ant project.

4. Go into the Workspace/Project properties, go to the debug tab
and if it is on network mapping, point to the jvm your jsp site
is using

5. Go to Tools | Tag Files and hit "rebuild tag files "

6. Go to your source ( vse support told me it is better to have it on
your local machine ) set your breakpoints, and attach to the
remote vm.

7. Start your site. This should make it all work

HTH

Steve













--
Be A Healthy Vegan Or Vegetarian
http://www.geocities.com/beforewisdom/Veg/healthyVeg.html

Steve's Home Page
http://www.geocities.com/beforewisdom/

"The great American thought trap: It is not real
unless it can be seen on television or bought in a
shopping mall"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top