facebook

[Closed] JavaScript Debugger Ignores Breakpoints

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #264536 Reply

    hilbertglm
    Member

    I am also having problems getting the JavaScript debugger to stop on a breakpoint. I downloaded the JavaScript QuickStart (Mario). That worked okay. I was able to stop at a breakpoint.

    I then created another MyEclipse J2EE Development project and tried to debug that code. The debugger did not stop at the breakpoints. I inserted a JS alert() statement before my breakpoint and they popup, so I am definitely am running the application where I should hit a breakpoint.

    I then terminated my application and tried to debug Mario. That also failed to stop on a breakpoint, so whatever I did also broke the debugger. I tried closing the J2EE perspective and the debug perspective and restarting, but that made no difference. I then terminated all of MyEclipse and restarted it.

    After restarting the workbench, I was again able to debug Mario, but the first time I try to debug my (very simple) JavaScript, it fails to stop on a breakpoint on either my application or on Mario.

    I can recreate this on demand.

    I am running:

    MyEclipse v5.0.1GA (20060810-5.0.1-GA)
    Windows XP SP2

    #264554 Reply

    Greg
    Member

    Could you post a sample web project that contains a file that when you add a breakpoint it will break the JS Debugger for future launches? If we can replicate the problem we can get our hands around possibly trying to fix it.

    Thanks,

    #264564 Reply

    hilbertglm
    Member

    Thank you for the quick response. Don’t see how to upload a file, so I put it on my website. The URL is:

    http://www.hilbertinc.com/ftp/myeclipse-71432.zip

    It’s very simple – just 11K. Just run the debugger against ‘index.html’. There’s no Java code. This is just testing an idea for JavaScript. It seems to break no matter where the breakpoint is placed.

    Let me know if there are any additional diagnostics that I can send to you.

    #264737 Reply

    Greg
    Member

    I loaded up your sample files. I right-click the html file and did “debug as > Javascript Application”. It loaded in the web20 browser. Then I went back to the HTML Designer and right-clicked in the source at the line 12 “testAll()”. Then I refreshed the web20 browser and it works then the javascript debugger stopped at the testAll method.

    Could you tell me a bit more about your test environment? What is your path to this file on your harddive? Do you see all of your scripts loaded in the “JavaScript Scripts Inspector” view?

    #266023 Reply

    hilbertglm
    Member

    Sorry it took so long to get back with you. I have been swamped with work and just used FireBug in the mean time.

    I installed 5.1.0GA over the weekend and it is now working as it should.

    Thank you for the help

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed] JavaScript Debugger Ignores Breakpoints

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