Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Remote javascript debugger(Breakpoints do not work in remote javascript debugger)
Remote javascript debugger [message #510339] Wed, 27 January 2010 10:21 Go to next message
Jeroen ter Voorde is currently offline Jeroen ter VoordeFriend
Messages: 4
Registered: January 2010
Junior Member
Hi,

I'm trying to get the remote javascript debugger to work using e4 M3 and rhino 1.7R2. I've added the code as described in the wiki:

String rhinoDebug = System.getProperty("rhino.debug");
if ( rhinoDebug != null) {
RhinoDebugger debugger = new RhinoDebugger(rhinoDebug);
debugger.start();
ContextFactory.getGlobal().addListener(debugger);
}

And i'm able to connect to the debugger from eclipse and get a thread list. However the debugger does not suspend on any breakpoints. I am assuming this is because it cannot match the source files to the locations my scripts return.

I've set the sourcefiles location to projectname/path and the source lookup directory to Workspace (as my scripts come from several projects). I've also tried paths relative to a single project and using that project as the lookup dir.

I'm using Windows Vista and jdk 1.6.0-18.

Any ideas?

Thanks,
Jeroen
Re: Remote javascript debugger [message #510620 is a reply to message #510339] Thu, 28 January 2010 02:38 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Hi Jeroen,

You're guessing right in that you're likely having problems with source
lookup. At the moment the source lookup is setup to work well with
JavaScript bundles but more general file based source lookup is not reliable
without knowing how the internals work. This is obviously something we're
working on improving right now in HEAD to ensure it demoes well at
Eclipsecon however for now your best bet is to break on script load and then
set your breakpoints in each script. After you've loaded the script once
this approach will generally work from run to run.

-Simon

"Jeroen ter Voorde" <jeroen@bitnetwerk.nl> wrote in message
news:hjp42j$8q6$1@build.eclipse.org...
> Hi,
>
> I'm trying to get the remote javascript debugger to work using e4 M3 and
> rhino 1.7R2. I've added the code as described in the wiki:
>
> String rhinoDebug = System.getProperty("rhino.debug");
> if ( rhinoDebug != null) {
> RhinoDebugger debugger = new RhinoDebugger(rhinoDebug);
> debugger.start();
> ContextFactory.getGlobal().addListener(debugger);
> }
> And i'm able to connect to the debugger from eclipse and get a thread
> list. However the debugger does not suspend on any breakpoints. I am
> assuming this is because it cannot match the source files to the locations
> my scripts return.
>
> I've set the sourcefiles location to projectname/path and the source
> lookup directory to Workspace (as my scripts come from several projects).
> I've also tried paths relative to a single project and using that project
> as the lookup dir.
>
> I'm using Windows Vista and jdk 1.6.0-18.
>
> Any ideas?
>
> Thanks,
> Jeroen
Re: Remote javascript debugger [message #510646 is a reply to message #510620] Thu, 28 January 2010 08:14 Go to previous messageGo to next message
Jeroen ter Voorde is currently offline Jeroen ter VoordeFriend
Messages: 4
Registered: January 2010
Junior Member
Hi Simon,

Thanks for your reply. I will give it another shot when the next milestone is released.

Jeroen
Re: Remote javascript debugger [message #523675 is a reply to message #510646] Sun, 28 March 2010 14:55 Go to previous messageGo to next message
Jeff Simpson is currently offline Jeff SimpsonFriend
Messages: 2
Registered: March 2010
Junior Member
I may have missed something, but I cannot find the RemoteDebugger class? Is this installed with E4? Or do we implement our own? I see the Debugger interface is available from Rhino.

Thanks
-Jeff
Re: Remote javascript debugger [message #524402 is a reply to message #523675] Wed, 31 March 2010 14:54 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
The JavaScript Debug work has now graduated out of the e4 incubator and is
now part of JSDT and the Helios release.
You can find this stuff in
/cvsroot/webtools/org.eclipse.jsdt/bundles/org.eclipse.wtp.j sdt.debug.*

Now, with that said all of JSDT is packaged as part of e4 so...

-Simon


"Jeff Simpson" <jeff@syncrodoka.net> wrote in message
news:honqkn$ogk$1@build.eclipse.org...
>I may have missed something, but I cannot find the RemoteDebugger class?
>Is this installed with E4? Or do we implement our own? I see the Debugger
>interface is available from Rhino.
>
> Thanks
> -Jeff
Re: Remote javascript debugger [message #568127 is a reply to message #510620] Thu, 28 January 2010 08:14 Go to previous messageGo to next message
Jeroen ter Voorde is currently offline Jeroen ter VoordeFriend
Messages: 4
Registered: January 2010
Junior Member
Hi Simon,

Thanks for your reply. I will give it another shot when the next milestone is released.

Jeroen
Re: Remote javascript debugger [message #572222 is a reply to message #510646] Sun, 28 March 2010 14:55 Go to previous messageGo to next message
Jeff Simpson is currently offline Jeff SimpsonFriend
Messages: 2
Registered: March 2010
Junior Member
I may have missed something, but I cannot find the RemoteDebugger class? Is this installed with E4? Or do we implement our own? I see the Debugger interface is available from Rhino.

Thanks
-Jeff
Re: Remote javascript debugger [message #572407 is a reply to message #572222] Wed, 31 March 2010 19:38 Go to previous message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
The JavaScript Debug work has now graduated out of the e4 incubator and is
now part of JSDT and the Helios release.
You can find this stuff in
/cvsroot/webtools/org.eclipse.jsdt/bundles/org.eclipse.wtp.j sdt.debug.*

Now, with that said all of JSDT is packaged as part of e4 so...

-Simon


"Jeff Simpson" <jeff@syncrodoka.net> wrote in message
news:honqkn$ogk$1@build.eclipse.org...
>I may have missed something, but I cannot find the RemoteDebugger class?
>Is this installed with E4? Or do we implement our own? I see the Debugger
>interface is available from Rhino.
>
> Thanks
> -Jeff
Previous Topic:XWT Designer MigLayout
Next Topic:e4 app based on Contact demo has problem with IEclipseContext
Goto Forum:
  


Current Time: Fri Mar 29 02:29:10 GMT 2024

Powered by FUDForum. Page generated in 0.02944 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top