facebook

Totally lost with Javascript debugging?

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

    harryajh
    Member

    Using Eclipse 3.1.0, ME 4.1.0 GE pro on win 2000 (sp4)

    Thought just by setting a breakpoint on a line of JS code either in a .JSP or .JS file the debugger would stop there – but ME seems to totally ignore any JS breakpoints – stops at java code in JSP files though!

    How/what/where do I use the JS debugger? – read other posts about “launching the js debugger”, do you have to somehow open another window or what?

    ME is a fantastic product at a very good price but you seriously need to update your tutorials to include all the features it now has – this surely would reduce many questions like this one (unless I’ve completely missed them of course!)

    cheers

    harry

    P.S Sorry just adding these as I find them…

    found this but link doesn’t work – http://www.myeclipseide.com/images/tutorials/me_remote_doc/javascript/

    Also using j2sdk1.4.2_08 with eclipse -vm launch BUT my weblogic jdk is 142_04 – could this be the problem? – this is so confusing!!!!!!!!!!!!!!!!!!!

    #245290 Reply

    Scott Anderson
    Participant

    harry,

    The correct link for the Javascript debugging tutorial (from the Documentation section) is:
    http://www.myeclipseide.com/images/tutorials/quickstarts/javascript/

    From your “link doesn’t work” I wasn’t sure if the link itself was broken (it’s old and has been replaced) or if the information you found in it was unhelpful. I’m assuming it’s the link and that the information in the new quickstart will help you quite a bit.

    Also, the best place to always look for the latest updates to the doc is in the Documentation section, which is accessible from the left navigation bar on this page under the Enterprise Workbench heading.

    #245482 Reply

    turn
    Member

    I have similar problem where ME is completely ignoring breakpoints in js file.

    Tomcat is running on localhost. JavaScriptInterpretor thread is also running after I launch javascript debug configuration.

    JavaScript breakpoints are ignored as I browse through web app.

    It almost seems that ME cannot associate js file with the resource that is requested by ME browser from web server. Scripts are requested using
    <script language=”JavaScript” src=”/scripts/scriptname.js” type=”text/JavaScript”></script>

    My setup:

    Eclipse SDK
    Version: 3.1.1
    Build id: M20050929-0840

    MyEclipse
    Version: 4.1.0 GA
    Build id: 20060122-4.1-GA

    Web Server
    Tomcat+Velocity

    #245511 Reply

    mattcampbell
    Member

    Same problem, i can run simple javascript debugging from a file on my workspace, but cannot when trying to debug a file on a web server.

    #245627 Reply

    Scott Anderson
    Participant

    Matt,

    We updated the tutorial on JS debugging with a new section on how to debug from a server. Can you check what you’re doing with what is described in Section 7 of the tutorial here: http://myeclipseide.com/enterpriseworkbench/help/topic/com.genuitec.myeclipse.doc/html/quickstarts/javascript/index.html#remotedebugging

    #245634 Reply

    mattcampbell
    Member

    Ok heres the steps i’ve gone through.

    Start up jboss and deploy the application.

    Open budget.js and set a breakpoint on the first line of the function.
    Open up budgetFind.jsp and set a breakpoint on a js script function.
    Open up budgetFind.jsp and right click -> Debug As -> Debug…
    Created a new Javascript Application with the following parameters:
    Name: BudgetFind-Jboss
    Project: mbeTestJS
    Launch URL: http://localhost:8080/mbs/budgetFind.do
    I click Debug and the page loads up.

    Now the budget.js contains the function that runs when the page loads via <body onload=””>
    The js function on the page gets called when i click on a button.
    Neither of these are being debugged.

    I’m using Sitemesh to build the page.

    Eclipse SDK
    Version: 3.1.1
    Build id: M20050929-0840

    MyEclipse
    Version 4.1.0 GA
    Build id: 20060122-4.1-GA

    Web Server
    Jboss 4.0.1

    #245638 Reply

    mattcampbell
    Member

    I also noticed that alert boxes are not being resized to fit the size of the message, making it annoying to have to resize the box just to click “Ok”

    #245645 Reply

    Greg
    Member

    Matt,

    Do you think you could ship us a stripped down copy of your current webproject that we could still replicate this problem? If not we can try to replicate it here. If you do send the project, just zip it up and sent it to support@genuitec.com and at the top put “ATTN Greg”.

    Also, the issue with the alert boxes not having the right size is a known issue. That issue should be resolved in the 4.1.1 release. Sorry for the inconveinence.

    #246486 Reply

    jjohnst
    Member

    I have the exact same problem as described in this post.

    Ok heres the steps i’ve gone through.

    Start up jboss and deploy the application.

    Open budget.js and set a breakpoint on the first line of the function.
    Open up budgetFind.jsp and set a breakpoint on a js script function.
    Open up budgetFind.jsp and right click -> Debug As -> Debug…
    Created a new Javascript Application with the following parameters:
    Name: BudgetFind-Jboss
    Project: mbeTestJS
    Launch URL: http://localhost:8080/mbs/budgetFind.do
    I click Debug and the page loads up.

    Now the budget.js contains the function that runs when the page loads via <body onload=””>
    The js function on the page gets called when i click on a button.
    Neither of these are being debugged.

    I’m using Sitemesh to build the page.

    #246487 Reply

    jjohnst
    Member

    Some of the details of my environment:

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 4.1.0 GA
    Build id: 20060122-4.1-GA
    
    *** Eclipse details:
    Eclipse SDK
    
    Version: 3.1.0
    Build id: I20050627-1435
Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Totally lost with Javascript debugging?

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