IDE Breakpoints for GWT 2.5 SourceMaps in Chrome? - eclipse

I have started using GWT 2.5 with Eclipse as my IDE. When using the debugger in Chrome, it is onerous to sort through the source file listing to set my breakpoints. It is even worse when I already have the relevant code open in Eclipse, and I have to find it in Chrome now.
Is there a way to set a breakpoint in Eclipse, and make use of that in Chrome?
This seems like a natural concept given the existence of SourceMaps. If it isn't already a part of the SourceMaps specification, perhaps it should be.

That's not possible in Eclipse (yet?)
I've been told JetBrains is working on it for IntelliJ IDEA though.

If you're using Javascript, then why not just add the line
debugger;
to your code?
It should pause execution on that line, and you can do it from eclipse/whatever IDE you're using.

Related

Cannot watch expressions of GWT under debug mode in Eclipse

I am using GWT 2.8 with GWT plugin v.3 and Tomcat 8 in Eclipse.
When I debug the project, breakpoints are working fine, but I can't watch expression, it shows reference error.
Does anyone has the same issue?
I read some related question which says using Google Plugin will be fine, but Google Plugin doesn't support Java 8.
Why it happens and how I solve it?
With GWT 2.8 and SuperDev Mode you have to change your debugging habbits a bit. On the server side the things stay the same, but on the client side you have to use the browser for debugging. Use GWT.debugger to add breakpoints in the code or set JS breakpoints in your browsers developer tools.
You also have to use the developer tools to see the expressions. Keep in mind to turn on source maps in your browser preferences. Eventually you have to use the -noincremental parameter in your run configuration to see the java variables.

Eclipse (Juno) hangs on JSF EL Expression Auto Complete

I am working with Eclipse Juno and a JSF 2.1 Project.
Auto-Complete for EL Expressions inside a Facelets file is excruciatingly slow.
Slow to the point where if I try to auto-complete a JSF Bean with 20 or so methods, Eclipse editor will hang for 10-15 seconds until I see the members/properties list.
The way I see it I have 2 solutions, I don't know how to implement neither, so help on any would help. (With preference to the first)
Resolve the slowness problem. My guess is Eclipse is doing a bunch of stuff I don't need when I press ctrl-space and if could disable those that should make it faster. (Educated Guess)
Disable Auto-Complete for El Expressions completely and install JBoss Tools (Which I must say, works flawlessly but when in conjunction with the native auto-complete support, It still hangs on every ctrl-space).
So, either solution would help - Resolve slowness or Disable Auto-Complete all together.
Thanks in Advance!!
Well.. Since no one is answering..
I removed the JSF facet and installed jboss tools.
Works fine since I build my project from outside of eclipse.
There are some caveats like support for certain content but all in all that's the "lesser of evils" solution.
Here is what worked for me :
Window -> Show View -> Error Log
if there are errors about a timeout to find javadoc for the JRE, do this :
Project Properties > Java Build Path > Libraries
remove the JRE, add the JDK
(or maybe you can configure the Java-doc for the JRE)

How to use Go language with NetBeans IDE?

How to setup Go language in NetBeans IDE?.
(Like i am already using Python, C/C++, Java, Php, BASH already in one NetBeans IDE).
Although I've never used it, there appears to only be one Go plugin for NetBeans. Their official website says that it provides syntax highlighting and templates for Go. I'm not sure if it's everything you're looking for, but it appears to be the only option at this point in time.
because NetBeans is maven-oriented IDE just out of the box, I use NB with maven through mvn-golang plugin and made some very restricted plugin contains project and file templates, may be in future will make syntax highlighting

Is it possible to script Eclipse?

I would like to script certain eclipse actions that are too repetitive. An example use case would be: Starting Tomcat, Starting GWT debug, then connecting to GWT debug mode. Best case scenario is if this could be done by shell via an external eclipse interface. But I'd settle for a macro in Eclipse itself as well. Are there any solutions as such?
Thanks!
See my answer at How can I launch more than one debug session in Eclipse from a single click? . The same plugin can work for you as well.
There is a little macro plug-in for Eclipse that seems to work for what you'd want.

Is there any way to manually fold code in Eclipse?

Is there any way to manually create fold points in code in Eclipse? I know how to enable folding and how to set the auto preferences, but i like being able to set my own fold points so I can ignore certain parts of my code. Think regions in VS.
I know there is in VS and NetBeans, but I cannot find a way to set manual fold points in Eclipse.
I don't think Eclipse has built in manual folding, but I did use a previous version of the following plugin for it.
Per the comment: The plugin has been recompiled for Eclipse 3.5 and is available at the Apache Isis site. A direct download link is also available. It also appears to work for Eclipse 3.6.
The coffee bytes folding plug-in for eclipse is still alive. But the pages have moved.
An Overview and how to get it can be found here.
I've installed it in eclipse using the update page.
In Eclipse go to Help -> Install new Software
Enter: eclipse.realjenius.com/update-site
Select the plugin and follow on-screen instruction.
I'm still pretty new to eclipse development and had to install mylyn before installing the code folding plugin.
I'm new to Eclipse, but since the IDE lets you fold preprocessor directives, you can just do "#if 1 .... #endif" to effectively set up manual folding.
No, eclipse does not have any option to provide manual folding plugins.