Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-debug-dev] Debug options.

> Hi jed,
>         First of all lemme thank you for giving me such precious
> information. I am planning to implement JSP source level debugging but
> before that I have a couple of doubts which I would like have them
> clarified.
>          Your first point says one has to implement an editor for "that"
> language, now we have JSP-editor that gets shipped along, cant we use that
> for the same purpose or do we have to implement another editor ?  Do we
have
> extension-points for the current editor ?
>           The last paragraph of your mail says its harder to implement
> source-level debugger for JSPs...is it harder or impossible ?
>            I am just going through various resources as to how can one
> implement a Java-debugger. What is this mangling of debug information you
> are talking of ? Does the tool interacts or pushes some code straight into
> the .class file or sth ?
>            Thanks in advance for the your precious reply to this mail.
>
> Regards,
> Kris
>
> ----- Original Message -----
> From: <Jed_Anderson@xxxxxxx>
> To: <platform-debug-dev@xxxxxxxxxxx>
> Sent: Monday, November 26, 2001 1:04 PM
> Subject: Re: [platform-debug-dev] Debug options.
>
>
> >
> > The debugger does not support JSP source level debugging "out of the
box".
> > However, it is possible to implement JSP source level debugging on your
> > own.
> >
> > To support debugging of any language that gets compiled to Java classes
> you
> > must provide the following:
> >
> > 1. An editor for the language.
> > 2. A tool that mangles the debug information in the .class file.  The
> debug
> > information should point to the line numbers in the original source.
> > Usually, the debug information contains references to the line numbers
in
> > the intermediate Java source.  This tool must be run after every compile
> of
> > the source.
> > 3. A source locator: the source locator takes a stack frame and returns
an
> > object that can be used as input to the editor
> > 4. A launcher that understands how to start a program written in your
> > language.  Currently, it must use the PatternDebugTarget when
registering
> > with the debug plugin (rather than the JDIDebugTarget).
> > 5. The ability to set breakpoints in your editor.  You ask
> > PatternBreakpointFactory to create a new pattern breakpoint on a file,
> line
> > & with a given pattern.  The pattern you supply is matched against the
> name
> > of the classfiles that are loaded.  Currently it is a basic algorithm,
we
> > simply check to see that the fully qualified name of the class starts
with
> > the given pattern.
> >
> > In the case of JSPs it's a little harder.  JSPs are compiled by the
> > application server, so your post-processing of the classfiles (as
required
> > by #2) must be built into the server.  Also, launching is a bit more
> > confused because it requires you to start your server (or restart your
> > application).
> >
> > jkca
> >
> >
> >
> >
> >                     "N V S Rama Krishna"
> >                     <ram_kri@xxxxxxxxx>               To:
> <platform-debug-dev@xxxxxxxxxxx>
> >                     Sent by:                          cc:
> >                     platform-debug-dev-admin@e        Subject:
> [platform-debug-dev] Debug options.
> >                     clipse.org
> >
> >
> >                     11/26/2001 04:06 PM
> >                     Please respond to
>
> >                     platform-debug-dev
> >
> >
> >
> >
> >
> > Hi,
> >   I would like to know if we can step into JSPs using the current
Debugger
> > (The plugin that gets shipped )? To what extent it is possible. I
> > personally think its not possible but just want to confirm if I am
missing
> > anything here. Shall be thankful if somebody can throw light on this
> issue.
> >              Thanks in advance.
> >
> > Regards,
> > Kris
> >
> >
> >
> > _______________________________________________
> > platform-debug-dev mailing list
> > platform-debug-dev@xxxxxxxxxxx
> > http://dev.eclipse.org/mailman/listinfo/platform-debug-dev
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



Back to the top