- This topic has 7 replies, 3 voices, and was last updated 18 years, 7 months ago by
svgray.
-
AuthorPosts
-
svgrayMemberHello,
I have a java/jsp/javascript application. I’m trying to debug the javascript side using MyEclipse 5.0 M2.
After setting up a debug profile using Run/Debug… and starting Tomcat (from within Eclipse) I ran the debug profile. The Web 2 browser starts up however all 4 panels are greyed out and stay that way. The application is not loaded in the “MyEclipse Web2.0 Browser” panel.
If you need any details about the project or the project itself I’m happy to provide these.
Thanks,
Steve
Riyad KallaMemberSteve,
You need to set a breakpoint to hit so the debug perspective can fill itself with the stateful information. Please check our documentation section for information on debugging both web apps and Javascript:
http://www.myeclipseide.com/ContentExpress-display-ceid-67.html
svgrayMemberHi Riyad,
Thanks for this. I’ve tried setting a break point, however unfortunately this has no effect. In 4.1.1 the application would load in the “Browser” panel when you ran the debug profile whether you set a break point or not. In 5.0M2 the application does not load in the Browser panel even if you set a break point. All four panels, including the Browser panel are empty.
By the way I’m using Windows version (Win 2000)
Thanks,
Steve
Riyad KallaMemberSteve,
Besides just setting a break point, you have to excerise your application in order for the point to be hit. For example, if you set a break point in index.jsp, you need to then point your browser at your index page so it is processed and the break point can get hit.
svgrayMemberThanks, but I think I’m already doing that by running the debug profile – what I’ve done is created a debug profile by using Run/Debug… and setting the start url to point to the home page of my application. Then to debug javascript I run the debug profile. This is the way the docs tell you to debug javascript. Note that I’m trying to debug javascript here not a jsp.
The problem is that in 4.1.1 when I run the debug profile, thereby starting the Web 2 browser and pointing it to my application’s home page, the application loads in the Web 2 browser. When I do this in 5.0M2, the application fails to load. I could start Firefox and point it to my application’s home page, but I’m guessing that that isn’t going to trigger javascript debugging, given that javascript is client side and the MyEclipse debugger is not built into Firefox.
I have a Professional license, so javascript debugging should be allowed (I checked that the license is installed correctly).
Thanks,
Steve
Riyad KallaMemberWe will verify this on our end.
GregMemberSteve,
Can you just launch the Web2.0 Browser by itself? You can do this by using the “Launch the MyEclipse Web2.0 Browser” action in the toolbar. Its the icon with the “2.0” over the globe.
If that brings up a browser with a gray/blank panel, then your installation isn’t complete. You will need to restart eclipse once and use the “-clean” cmdline argument.
eclipse.exe -clean -vmargs -Xmx512M -XX:MaxPermSize=128M
If the Web2.0 Browser does open when you use the toolbar action, then we have a different problem. So let us know the outcome and we can go from there.
svgrayMemberThank you, I had the same problem starting the web 2 browser by itself, and running eclipse with -clean fixed the problem.
Thanks for your help.
-
AuthorPosts