facebook

Javascript debugger not working

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #248795 Reply

    kroekle
    Participant

    I’ve been trying to get the Javascript debugger to work, but so far have been unable to. I have a very simple HTML file with one javacript function that is called from onload. All this function has in it is one variable and an alert. I have a breakpoint set on the line with the alert and then debug as javascript application. The web 2.0 browser opens up and I get the alert, it never stops at the breakpoint. One message does come up in the console “uncaught exception: Permission denied to set property EventTarget.addEventLIstener”. Through a couple of suggestions, I’ve reinstalled both eclipse (3.1.2 in a new directory) and MyEclipse (4.1.1 trial version (after uninstalling the old version)), I even went as far as to remove all JDK’s from my machine (Win XP SP2) leaving only jdk 1.5.0_06. I have been starting Eclipse with “-clean” in both the ini and in the shortcut. I’ve run out of idea’s and hope someone else has something that works.

    Thanks.

    #248801

    Greg
    Member

    The permission denied error is a message from the browser, so something going on in the javascript it doesn’t like. Make sure that you don’t have any newlines in your <title> element. There is a bug in Gecko that breaks the javascript debugging capabilities if you have a newline in the <title> element.

    If you don’t have a newline in your title, please post the entire contents of the HTML file and also show the exact line you are setting the breakpoint. We will try to replicate the issue on our side and see what may be going on.

    #248825

    kroekle
    Participant

    Here’s the HTML, the breakpoint is set on line 19 (the var test… line):

    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
    <html>
    <head>
    <title>MyHtml.html</title>

    <meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
    <meta http-equiv=”description” content=”this is my page”>
    <meta http-equiv=”content-type” content=”text/html; charset=UTF-8″>

    <!–<link rel=”stylesheet” type=”text/css” href=”./styles.css”>–>

    </head>

    <body onload=”loadScript();”>
    This is my HTML page. <br>
    <S_CRIPT>
    function loadScript() {

    var test = “test”;

    alert(“Hello World”);
    }
    </S_CRIPT>
    </body>
    </html>

    #248827

    Greg
    Member

    I tried this with version 4.1.1 and it works just fine. It stops at line 19. Make sure that download the 4.1.1 installer once again. The very first copies of 4.1.1 had a bug that affected Pro features like the JavaScript debugger. So redownload 4.1.1 and try again. Be sure and restart eclipse with “-clean” once after you reinstall.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Javascript debugger not working

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