RE: Remote Applet Debugging

"Flatoff Allan" <[email protected]> Mon, 12 Dec 2005 13:09:34 -0600
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
Hello -

It looks like I got the debugger working for the most part.

I have a question though . . .

When I'm debugging - I don't see any graphical indicator of what line
I'm on 
in the source code.  Does such a feature exist?  If so how can I turn it
on.

Right now I'm just watching the output section on the debugger console
for line number and
Scrolling to the line number in my code

Thanks!

-----Original Message-----
From: Nathan Fiedler [mailto:[email protected]] 
Sent: Monday, December 12, 2005 10:04 AM
To: Flatoff Allan
Cc: [email protected]
Subject: Re: [jswat-user] Remote Applet Debugging

It sounds like the remote applet part is not important here, but instead

it is a question of setting the sourcepath. See the help topic titled 
"Classpath and Sourcepath", which describes how JSwat locates source 
code. Unfortunately, you don't find out how to set the sourcepath until 
you get to the Troubleshooting section. I'll have to correct that. In 
any case, you set the sourcepath in the Session Settings dialog (Session

menu, Settings item), using the path editor in the "Sources" tab.

Once JSwat knows where to look for your source code, it will display the

source whenever a breakpoint is hit, or while single-stepping.

n


Flatoff Allan wrote:
> Hello,
> 
> I have attempted to debug an applet with Jswat (unsuccessfully) and 
> here's the result.
> 
> Maybe someone can help . . .
> 
> Some background:
> 
> I can't launch the applet using appletviewer since the applet can't
run 
> standalone.  It uses
> getBaseUrl to obtain the Applet's address which it in turn uses to
call 
> a servlet which accesses
> Items in the user's web session.  - So basically no web session - no 
> running my applet
> 
>
___http://java.sun.com/j2se/1.4.2/docs/api/java/applet/Applet.html#getCo
deBase()_ 
> 
> 
> So therefore I have to run the debugger remotely.
> 
> I followed the instructions here:
> 
> ___http://www.bluemarsh.com/java/jswat/docs/howto-applet.html_
> 
> And in the Jswat online help to get connected to the session.
> 
> I managed to get a debug session going -
> 
> Here's my question:
> 
> How do I get to see my applet source code and set break points?
> 
> Obviously I will have to view a decompiled version of it or something
-
> Since applets are compiled class files
> 
> I'll keep trying at it but if anyone can point me in the right
direction 
> it would be appreciated.
> 
> Thanks!


This e-mail is confidential.  If you are not the intended recipient, you must not disclose or use the information contained in it.  If you have received this e-mail in error, please tell us immediately by return e-mail to [email protected] and delete the document.

E-mails containing unprofessional, discourteous or offensive remarks violate Sentry policy. You may report employee violations by forwarding the message to [email protected].

No recipient may use the information in this e-mail in violation of any civil or criminal statute. Sentry disclaims all liability for any unauthorized uses of this e-mail or its contents.

This e-mail constitutes neither an offer nor an acceptance of any offer. No contract may be entered into by a Sentry employee without express approval from an authorized Sentry manager.

Warning: Computer viruses can be transmitted via e-mail. Sentry accepts no liability or responsibility for any damage caused by any virus transmitted with this e-mail.