facebook

JavaScript Debugger Ignores Breakpoints [Used JS Quickstart]

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

    curmudgeon99
    Participant

    I am using a licensed copy of ME Version 5.1.0 GA, Build 20061111-5.1.0-GA on WindowsXP.

    I have a web project in which I am trying to get the JavaScript debugger to stop on a breakpoint but it never does.

    I have followed the “MyEclipse JavaScript Development and Debugging Quickstart”, which led me to right-click on my JavaScript script in my JSP and define a new JavaScript launch configuration and to specify the launch URL as the same localhost URL that I use to test my application on the local JRun application server. Finally, I have taken the step of using the internal Eclipse browser to test but, alas, I can never get it to stop on my JavaScript breakpoint.

    In short, what am I doing wrong?

    thank you

    #263815 Reply

    Riyad Kalla
    Member

    Let’s try something even easier. Run your app, click the Web2.0 Browser button from the toolbar, that will pop open the browser. Navigate to your running application, once it’s loaded up, click the Instant-On debugging button, which should load up all the resources from your app and all the JavaScript, and then perform the action that will cause your breakpoint to be hit.

    #263826 Reply

    curmudgeon99
    Participant

    Thank you for the prompt reply.

    I did as you said and saw along with the running threads in my Debug window that the JavaScript Debugging indeed became a running application. I clicked on the Web2.0 button and the browser popped up. I entered the URL for my app and when I hit the submit button, it did not stop at my break point. I did see back in the main MyEclipse that it showed the JavaScript functions but no where did it stop.

    I searched the documentation for the “Instant-On debugging button” and didn’t find anything. I presumed it was just the usual debugger button but perhaps that was an incorrect assumption. Can you see where I’ve gone astray? Maybe be a little more precise on what you meant by the “Instant-On debugging button”?

    Thank you.

    [By the way: I just moved to a new company where they didn’t use MyEclipse. I was able to convince them of its value and they are about to purchase a license for each of the developers–about 9.]

    #263833 Reply

    Riyad Kalla
    Member

    curmudgeon99,
    Have a quick look through our AJAX debugging tutorial here;
    http://www.myeclipseide.com/images/tutorials/quickstarts/ajaxdebugging/tutorial.html

    it describes the functionality I was explaining in detail. After watching that, please let me know where the hangup is occuring. For example, are you seeing the AJAX request in the monitor view and so on?

    Also the JavaScript must be in an external JS file and called from a HTML or JSP page, it cannot be inside the page itself at this time.

    #263856 Reply

    curmudgeon99
    Participant

    Riyad,
    Thank youl. I will check out the AJAX tutorial and I can say right now it was embedded JavaScript. That gives me something to go on. I must say, other information thas was provided in the problems list for the perspective helped me solve some other JS problems. Great tool. Keep it up. My current team was using vi to write Java. To say they are now shell-shocked at what is possible is a gross understatement.

    Thank you,
    Tom

    #263862 Reply

    Riyad Kalla
    Member

    Tom,
    Your comments are really a shot in the arm for us. We appreciate the support and are going to work our tails off in 2007 to keep your business.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: JavaScript Debugger Ignores Breakpoints [Used JS Quickstart]

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