Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Remote javascript debugger
Remote javascript debugger [message #568024] Wed, 27 January 2010 05:21 Go to next message
Jeroen ter Voorde is currently offline Jeroen ter Voorde
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 #568098 is a reply to message #568024] Wed, 27 January 2010 21:38 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon Kaegi
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 #648326 is a reply to message #568024] Wed, 12 January 2011 08:11 Go to previous message
Enrico Magen is currently offline Enrico Magen
Messages: 15
Registered: September 2010
Junior Member
Hey,

Did you manage to solve this problem some how? I'm facing the exact same problem.

I'm also trying to understand what Simon means in his reply. I can break on script load but then what?
Previous Topic:HowTo reference images/icons in e4
Next Topic:Download is not happeining through git server
Goto Forum:
  


Current Time: Tue Jul 22 23:43:04 EDT 2014

Powered by FUDForum. Page generated in 0.01686 seconds