Remote debugging of JSPs

Perhaps I don't fully understand how the JPDA, JVMDI and JDWP work, so forgive this demonstration of my ignorance.

Why is it necessary to run a servlet container within the editor in order to debug JSPs? Is there some flaw within the Java Platform Debugger Architecture that prevents a remote JVM from sending the editor what is needed to track execution? Wouldn't precompiling JSPs with debugging turned on, bundling source and compiled code in a war/ear and deploying to a remote server put the editor and the remote JVM "on the same page"?

In my company, we do most of our development on remote machines. While we can remotely debug servlets and other POJOs, debugging JSPs is not possible. Someone please enlighten me as to why.

Thanks.

Eric

2 comments
Comment actions Permalink

Remote is by far the best way to it. Just leave the server running, deploy,
connect, debug, disconnect, repeat.

Most developers are just used to it. I could never understand.


"Eric Sheffer" <esheffer@lycos.com> wrote in message
news:22130526.1071664003638.JavaMail.javamailuser@localhost...

Perhaps I don't fully understand how the JPDA, JVMDI and JDWP work, so

forgive this demonstration of my ignorance.
>

Why is it necessary to run a servlet container within the editor in order

to debug JSPs? Is there some flaw within the Java Platform Debugger
Architecture that prevents a remote JVM from sending the editor what is
needed to track execution? Wouldn't precompiling JSPs with debugging turned
on, bundling source and compiled code in a war/ear and deploying to a remote
server put the editor and the remote JVM "on the same page"?
>

In my company, we do most of our development on remote machines. While we

can remotely debug servlets and other POJOs, debugging JSPs is not possible.
Someone please enlighten me as to why.
>

Thanks.

>

Eric



0
Comment actions Permalink

I am a new user to IntelliJ and am finding some difficulty in debugging the
JSP code from IntelliJ. I use 3.0 version and I connect to Tomcat 4.0.6.
When I put breakpoints for methods in classes, it stops perfectly and I am
able to check values .. but when I add a line breakpoint to a JSP file it
doesnt stop execution there.
Is there some settings I need to do to be able to do JSP line breakpoints
debug.

Thanks
Leslie


"Norris Shelton" <nshelton@appriss.com> wrote in message
news:brq7pf$kob$1@is.intellij.net...

Remote is by far the best way to it. Just leave the server running,

deploy,

connect, debug, disconnect, repeat.

>

Most developers are just used to it. I could never understand.

>
>

"Eric Sheffer" <esheffer@lycos.com> wrote in message
news:22130526.1071664003638.JavaMail.javamailuser@localhost...

Perhaps I don't fully understand how the JPDA, JVMDI and JDWP work, so

forgive this demonstration of my ignorance.
>

Why is it necessary to run a servlet container within the editor in

order

to debug JSPs? Is there some flaw within the Java Platform Debugger
Architecture that prevents a remote JVM from sending the editor what is
needed to track execution? Wouldn't precompiling JSPs with debugging

turned

on, bundling source and compiled code in a war/ear and deploying to a

remote

server put the editor and the remote JVM "on the same page"?
>

In my company, we do most of our development on remote machines. While

we

can remotely debug servlets and other POJOs, debugging JSPs is not

possible.

Someone please enlighten me as to why.
>

Thanks.

>

Eric

>
>


0

Please sign in to leave a comment.