facebook

javascript debugger works once; breakpoints ignored thereaft

  1. MyEclipse Archived
  2.  > 
  3. Web 2.0 / AJAX
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #261284 Reply

    tommurphyusa
    Member

    I am able to launch the javascript debugger and step through my code. Once. No matter what I do thereafter, it fails to stop at breakpoints. I tried: terminating the launch, removing the launch, pressing refresh button on browser. pressing clear cache button on browser, closing browser window and repeating the “debug as javascript” operation to reopen it, etc. If I end Eclipse altogether, restart, then it works – once. Note: the page does display and the javascript is obviously executing. The debugger just won’t stop at the breakpoints.

    I also notice that I get on the Javascript console two of these messages at the top (hand transcribed since there is no way to copy this to clipboard):

    [Exception Component returned failure code 0x80570016 (NS_ERROR_XP_GS_RETURNED_FAILURE)[nsIJSCID.getService) … plus some more similar or identical stuff … location: “JS frame:: file://…/MyEclipse…/eclipse/plugin

    The Eclipse log shows some assert statement stuff:

    org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed: ContentViewer must have a content provider when input is set.)
    at org.eclipse.swt.SWT.error(SWT.java:3374)
    at org.eclipse.swt.SWT.error(SWT.java:3297)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
    Caused by: org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed: ContentViewer must have a content provider when input is set.
    at org.eclipse.jface.util.Assert.isTrue(Assert.java:182)
    at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:242)
    at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1542)
    at com.genuitec.javascript.debug.ui.views.JSScriptView.setViewerInput(JSScriptView.java:136)
    at com.genuitec.javascript.debug.ui.views.JSScriptView.access$0(JSScriptView.java:135)
    at com.genuitec.javascript.debug.ui.views.JSScriptView$4.run(JSScriptView.java:127)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
    … 20 more

    Here is my config:

    *** Date: Thu Nov 02 12:15:56 CST 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_08

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0 GA
    Build id: 20060805-5.0-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.2.0
    Build id: M20060629-1905

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse Platform

    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905

    Eclipse RCP

    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905

    Eclipse Java Development Tools

    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905

    Eclipse Plug-in Development Environment

    Version: 3.2.0.v20060609m——6zXJJzJzJq
    Build id: M20060629-1905

    Eclipse Project SDK

    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\tom\e\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    cc0_54
    -vm
    C:\WINDOWS\system32\javaw.exe

    #261311 Reply

    Riyad Kalla
    Member

    This is very strange, does it happen no matter *what* JavaScript you try and debug? (like other JS files?)

    Also this might be memory related, have a look at our tip here and see if that helps: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10087.html

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: javascript debugger works once; breakpoints ignored thereaft

You must be logged in to post in the forum log in