Debug info unavailable under JRun4

I'm using JRun4 and trying to debug JSPs using IDEA. I can configure
JRun so that it leaves the generated Java servlet in \web-inf\jsp. For
example I have a file called jrun_login2ejspa.java. I can open this file
in IDEA and set breakpoints in it (a check appears in the source). When
the debugger actually stops, however, the line is not highlighted. In
the debugger pane, the message "debug info unavailable" appears, and I
can't see any of the variables, etc. in the pane.

I can single step, but when I step the current highlighted line has no
relation to the actual java source, so it's not much good.

Any ideas out there?

Is there a way I can test to see if the class file has debugging info
compiled in? When I get exceptions they seem to have line numbers from
the generated file.

7 comments
Comment actions Permalink

Did you add \web-inf\jsp to your project?

"Charlie Evett" <evett@marketsoft.com> wrote in message
news:b0hshu$uod$1@is.intellij.net...

I'm using JRun4 and trying to debug JSPs using IDEA. I can configure
JRun so that it leaves the generated Java servlet in \web-inf\jsp. For
example I have a file called jrun_login2ejspa.java. I can open this file
in IDEA and set breakpoints in it (a check appears in the source). When
the debugger actually stops, however, the line is not highlighted. In
the debugger pane, the message "debug info unavailable" appears, and I
can't see any of the variables, etc. in the pane.

>

I can single step, but when I step the current highlighted line has no
relation to the actual java source, so it's not much good.

>

Any ideas out there?

>

Is there a way I can test to see if the class file has debugging info
compiled in? When I get exceptions they seem to have line numbers from
the generated file.

>


0
Comment actions Permalink

Is there a way I can test to see if the class file has debugging info
compiled in? When I get exceptions they seem to have line numbers from
the generated file.


There should be information in JRun's help how to configure its jsp compiler to generate debug info.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


0
Comment actions Permalink

I'm not sure what you mean. The project root is above web-inf\jsp,
however the src path is somewhere else, so when I open the generated
file I have to "add it temporarily" to the project. One of the issues is
that I don't want IDEA to try and compile these generated files when I
build, since they will have all kinds of errors in them unless I add all
the JRun runtime jars to my project.

Brad Lane wrote:

Did you add \web-inf\jsp to your project?

"Charlie Evett" <evett@marketsoft.com> wrote in message
news:b0hshu$uod$1@is.intellij.net...

>>I'm using JRun4 and trying to debug JSPs using IDEA. I can configure
>>JRun so that it leaves the generated Java servlet in \web-inf\jsp. For
>>example I have a file called jrun_login2ejspa.java. I can open this file
>>in IDEA and set breakpoints in it (a check appears in the source). When
>>the debugger actually stops, however, the line is not highlighted. In
>>the debugger pane, the message "debug info unavailable" appears, and I
>>can't see any of the variables, etc. in the pane.
>>
>>I can single step, but when I step the current highlighted line has no
>>relation to the actual java source, so it's not much good.
>>
>>Any ideas out there?
>>
>>Is there a way I can test to see if the class file has debugging info
>>compiled in? When I get exceptions they seem to have line numbers from
>>the generated file.
>>



0
Comment actions Permalink

I guess I didn't have that problem since we do all of our compiling with Ant
and I just unchecked the "Make project before running/debuging".
So, I had the web-inf/jsp directory in my project path, I include the JRun
jars as a library (so I don't see all those red marks), then, somehow, I got
JRun to create the debug info when compiling the jsps. I can't remember
right now how I did that so I will try and figure it out.

"Charlie Evett" <evett@marketsoft.com> wrote in message
news:b0k0tb$j09$1@is.intellij.net...

I'm not sure what you mean. The project root is above web-inf\jsp,
however the src path is somewhere else, so when I open the generated
file I have to "add it temporarily" to the project. One of the issues is
that I don't want IDEA to try and compile these generated files when I
build, since they will have all kinds of errors in them unless I add all
the JRun runtime jars to my project.

>

Brad Lane wrote:

Did you add \web-inf\jsp to your project?

>

"Charlie Evett" <evett@marketsoft.com> wrote in message
news:b0hshu$uod$1@is.intellij.net...

>
>>I'm using JRun4 and trying to debug JSPs using IDEA. I can configure
>>JRun so that it leaves the generated Java servlet in \web-inf\jsp. For
>>example I have a file called jrun_login2ejspa.java. I can open this file
>>in IDEA and set breakpoints in it (a check appears in the source). When
>>the debugger actually stops, however, the line is not highlighted. In
>>the debugger pane, the message "debug info unavailable" appears, and I
>>can't see any of the variables, etc. in the pane.
>>
>>I can single step, but when I step the current highlighted line has no
>>relation to the actual java source, so it's not much good.
>>
>>Any ideas out there?
>>
>>Is there a way I can test to see if the class file has debugging info
>>compiled in? When I get exceptions they seem to have line numbers from
>>the generated file.
>>
>
>
>

>


0
Comment actions Permalink

Okay, so it seems I couldn't find the 'switch' to turn debug info on in
JRun. What I did was have IDEA compile the generated java file (generated
from jsp) and put in in the web-inf/jsp directory. This method sucks but it
works and is all we have for debugging jsps with IDEA/JRun. I guess that's
why I downloaded Tomcat and started using that if I needed to debug a jsp.
:)


"Brad Lane" <lanebr@ncs.com> wrote in message
news:b0k5o9$sak$1@is.intellij.net...

I guess I didn't have that problem since we do all of our compiling with

Ant

and I just unchecked the "Make project before running/debuging".
So, I had the web-inf/jsp directory in my project path, I include the JRun
jars as a library (so I don't see all those red marks), then, somehow, I

got

JRun to create the debug info when compiling the jsps. I can't remember
right now how I did that so I will try and figure it out.

>

"Charlie Evett" <evett@marketsoft.com> wrote in message
news:b0k0tb$j09$1@is.intellij.net...

I'm not sure what you mean. The project root is above web-inf\jsp,
however the src path is somewhere else, so when I open the generated
file I have to "add it temporarily" to the project. One of the issues is
that I don't want IDEA to try and compile these generated files when I
build, since they will have all kinds of errors in them unless I add all
the JRun runtime jars to my project.

>

Brad Lane wrote:

Did you add \web-inf\jsp to your project?

>

"Charlie Evett" <evett@marketsoft.com> wrote in message
news:b0hshu$uod$1@is.intellij.net...

>
>>I'm using JRun4 and trying to debug JSPs using IDEA. I can configure
>>JRun so that it leaves the generated Java servlet in \web-inf\jsp. For
>>example I have a file called jrun_login2ejspa.java. I can open this

file

>>in IDEA and set breakpoints in it (a check appears in the source).

When

>>the debugger actually stops, however, the line is not highlighted. In
>>the debugger pane, the message "debug info unavailable" appears, and I
>>can't see any of the variables, etc. in the pane.
>>
>>I can single step, but when I step the current highlighted line has no
>>relation to the actual java source, so it's not much good.
>>
>>Any ideas out there?
>>
>>Is there a way I can test to see if the class file has debugging info
>>compiled in? When I get exceptions they seem to have line numbers from
>>the generated file.
>>
>
>
>

>

>
>


0
Comment actions Permalink

Apparently in the latest version of JRun it's much harder to configure
it to compile with -g. Here's what I found out from Macromedia support:

"The default JRun JSP compiler doesn't have the -g option. You may try
this. Rename the jikesw.exe to jikesw_x.exe and create a new .bat file
called jikesw.bat. In the bat file, write this,

jikesw_x.exe -g %1 %2 %3 %4

However, I am not sure this will solve your problem. "

The reported trick of compiling the generated files using IDEA would
also work.


Eugene Zhuravlev wrote:
>>Is there a way I can test to see if the class file has debugging info
>>compiled in? When I get exceptions they seem to have line numbers from
>>the generated file.


There should be information in JRun's help how to configure its jsp compiler to generate debug info.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


0
Comment actions Permalink

Thanks for the update! I've been scouring the JRun docs and website with no
luck.

"Charlie Evett" <evett@marketsoft.com> wrote in message
news:b0mfmt$lie$1@is.intellij.net...

Apparently in the latest version of JRun it's much harder to configure
it to compile with -g. Here's what I found out from Macromedia support:

>

"The default JRun JSP compiler doesn't have the -g option. You may try
this. Rename the jikesw.exe to jikesw_x.exe and create a new .bat file
called jikesw.bat. In the bat file, write this,

>

jikesw_x.exe -g %1 %2 %3 %4

>

However, I am not sure this will solve your problem. "

>

The reported trick of compiling the generated files using IDEA would
also work.

>
>

Eugene Zhuravlev wrote:
>>Is there a way I can test to see if the class file has debugging info
>>compiled in? When I get exceptions they seem to have line numbers from
>>the generated file.
>
>

There should be information in JRun's help how to configure its jsp

compiler to generate debug info.

>

--

>

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"

>
>

>


0

Please sign in to leave a comment.