- This topic has 9 replies, 6 voices, and was last updated 18 years, 7 months ago by jjohnst.
-
AuthorPosts
-
harryajhMemberUsing 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!!!!!!!!!!!!!!!!!!!
Scott AndersonParticipantharry,
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.
turnMemberI 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-0840MyEclipse
Version: 4.1.0 GA
Build id: 20060122-4.1-GAWeb Server
Tomcat+Velocity
mattcampbellMemberSame 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.
Scott AndersonParticipantMatt,
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
mattcampbellMemberOk 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-0840MyEclipse
Version 4.1.0 GA
Build id: 20060122-4.1-GAWeb Server
Jboss 4.0.1
mattcampbellMemberI 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”
GregMemberMatt,
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.
jjohnstMemberI 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.
jjohnstMemberSome 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
-
AuthorPosts