Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Knowings
Post subject: IE remote debugging  PostPosted: Jan 22, 2010 - 01:26 PM
Veteran Member
Veteran Member


Joined: Apr 29, 2008
Posts: 6

Hello,

Maybe I misunderstood the new IE remote debugging feature of MyEclipse, but I though I could debug JavaScript in a page generated by any remote Web server. The configuration dialog let me though it was the case, because when selecting the "URL" radio button, the "Project" field becomes disabled. But doing so one cannot run the debug configuration because the "Select projet" errors is displayed and the "Debug" remains disabled :
Image

Is it really possible to debug JavaScript of any web page, even not attached to a MyEclipse project?
If not, what is really behind this remote debugging using URL feature?

--------------------My configuration is :----------------------------

*** Date:
vendredi 22 janvier 2010 14 h 27 CET

** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.6.0_13


*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 8.0
Build id: 8.0-20091120

*** Eclipse details:
MyEclipse Enterprise Workbench

Version: 8.0
Build id: 8.0-20091120

Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\Genuitec\MyEclipse 8.x Latest\myeclipse.exe
-name
Myeclipse
--launcher.library
C:\Program Files\Genuitec\MyEclipse 8.x Latest\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup
C:\Program Files\Genuitec\MyEclipse 8.x Latest\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-install
C:/Program Files/Genuitec/MyEclipse 8.x Latest
-configuration
configuration
-vm
C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject: RE: IE remote debugging  PostPosted: Jan 25, 2010 - 05:22 AM
Registered Member
Registered Member


Joined: May 18, 2009
Posts: 1532

Knowings
Quote:

Is it really possible to debug JavaScript of any web page, even not attached to a MyEclipse project?

Can you list out the steps of what exactly you are trying to do?

_________________
Shalini
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: IE remote debugging  PostPosted: Jan 25, 2010 - 09:12 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3242

Knowings,

Thanks for reporting this. Looks like you have uncovered a bug on IE Remote Debugging. I am able to reproduce this. I have filed this as a PR for the dev team members. In the interim, I have a workaround for you -
1. Create a web project.
2. Open index.jsp. Right click on the file, from context menu click on Debug As > IE Javascript.
3. This will load all the script in the script viewer and run the javascript functions in the debug mode
4. Press [F8] to complete debugging.
5. Press [Ctrl+F2] to terminate debugging.
6. Next click on "Debug Configurations:".
7. By default the left hand pane will list you the node as index.jsp, right hand pane will display Project File as selected and the project name and file options of the last IE debugger.
8. Select - URL radio button.
9. Add the UR to be remotely debugged.
10. Select the debug options
11. Click on [Apply] and [Debug].
This will open a debug session. When a debug session is started (either local file or remote URL) the JavaScript Scripts View would populate with all the files that contribute JavaScript functions and the functions themselves in a click-able. You should be able to set breakpoints in this file, and continue
execution and see their breakpoints hit.
Let me know how this works for you.
Sorry for the inconvenience. I will try to get this issue fixed in our next release.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Knowings
Post subject: RE: IE remote debugging  PostPosted: Jan 28, 2010 - 05:25 PM
Veteran Member
Veteran Member


Joined: Apr 29, 2008
Posts: 6

Joy,

Thank you for your reply.
It worked until step 11, but after that I could see no script (nor script list) in the Debug perspective. My usual Java-oriented Debug perspective is displayed. I tried to add a view using Window/Show View... but found no view named "JavaScript Scripts". Can you explain to me how to configure the debug perspective to add all useful views for JS debugging?
Best Regards,

Philippe
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: IE remote debugging  PostPosted: Jan 29, 2010 - 10:39 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3242

Philippe,

Ah, I am sorry I missed out one more point. Please place breakpoints in the index.jsp mentioned in point 2. And repeat the steps 2 through 11. You should be able to see the javascript loaded in the debug perspective. Please see the attached screenshot. Let me know if this works for you.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Knowings
Post subject: RE: IE remote debugging  PostPosted: Jan 29, 2010 - 03:41 PM
Veteran Member
Veteran Member


Joined: Apr 29, 2008
Posts: 6

Joy,

At last I managed to remote debug my first JS file in MyEclipse :-)
I had difficulties setting a breakpoint in the JS code. The "Break on first line" check box does nothing in my case: il only suspends the JS execution, the browser gets frozen, but no script code appears in Eclipse.
Adding a "debugger" instruction in the JS code worked.
I think I need to investigate a bit more on this MyEclipse feature. Maybe I'll ask you more questions them.
Thanks for your help.

Philippe
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: IE remote debugging  PostPosted: Feb 01, 2010 - 04:24 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3242

Philippe,

I have already filed a PR for the dev team. I hope to have the fix in the next rollout. Good to hear you have figured how to debug JS file in MyEclipse.

Best.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits