Eclipse–Decompiler to read the .class files while debugging

Installing this is very simple. Just drag and drop the icon in your running eclipse (Juno)

Jadeclipse

Hope this link still work works : –
http://marketplace.eclipse.org/content/jadclipse-eclipse-4x#.UZH7YKJHI1N

 

JadClipse for Eclipse 4.x also support Eclipse 3.x, and provides several new features:

1. Integrate jad.exe into the plugin, don’t need to set jad path in the preference page again.
2. Add two options in the JadClipse main preference page:
(1) Use Eclipse member sorter
(2) Show decompiler report
3. Update the formatting preference default settings, the “Output fields before methods” setting’s default value changes to true.

IDE : Eclipse Vs NetBeans

 

NetBeans is an open-source project dedicated to providing rock solid software development products.I love Net Beans and its free like eclipse (Idea Injelli J is cool but its a paid IDE). If you want to do a quick start, instead of wasting time in IDE setup especially for web application development my vote goes for Net Beans.

The other day I have to do some experiment in a struts web app, I started using eclipse, now it told me to download tomcat, struts libs, setup environment variables and so many things  before i can see my hello world app. Then I just downloaded Netbeans click on a sample project of struts, there it goes, with the eye blink, the entire project was ready, compiled with all dependencies and deployed on bundled tomcat Smile. I started playing with app and experimented what I had to learn without much hassels of project setup etc as i had to do with eclipse. The User interface is very intuitive.

 

image

 

Pros and cons

So, now that the two environments are on a fairly even footing in the features and functionality they provide, what’s the difference? A lot of it has to do with personal preference and what the IDE is being used for. In fact, many developers use both Eclipse and NetBeans — just for different projects or clients. Each solution still has its own drawbacks and frustrations. Here are two of the most common distinctions users make between the IDEs:

  • Ease of use
    According to quite a few developers, Netbeans is easier to navigate right out of the box as long as you don’t try to use all the bells and whistles at first. It’s potentially more difficult to grasp at an advanced level compared to Eclipse because you really have to know what you are doing in Java to complete more complex projects. It could be ideal for beginner Java developers who just need the basics to start with and who are willing to take a “learn as you go” attitude to the rest of the platform. At one time, NetBeans featured a more pleasing and intuitive interface than Eclipse; but Eclipse has improved in this department recently.
  • Plugins
    Eclipse has a huge array of plugins delivering capabilities that aren’t necessarily available with NetBeans. Sorting through the plugins and dealing with plugins that break because of updates to new versions can be a headache. Third-party plugins offer lots of variety but aren’t necessarily reliable because of a lack of quality control. This reliance on plugins has led to quite a few complaints about the stability of the Eclipse platform; there’s a lot that can go wrong as the number of plugins increases. That being said, if you get the right plugins, it can make life a lot easier.

NetBeans tools tend to be a little more standardized as part of the Sun/Oracle brand. For example, a GUI builder comes with the NetBeans platform while it’s only available as a plugin for Eclipse. At the same time, many Google development tools like those for Android are easily obtainable as plugins for Eclipse and are not part of the regular NetBeans package. Some plugins are available for NetBeans (including a few that can be ported from Eclipse), but these plugins introduce a whole different set of complexities and the plugin technology isn’t as mature for NetBeans when compared to Eclipse.

At this time, it appears that Eclipse will continue to dominate the field due to user familiarity and the availability of custom options. However, the fact that NetBeans is a viable option means Eclipse will need to keep their plugin issues under control to retain customer loyalty .

Debugging trick – Conditional break point

One of the most important developer activities is debugging.
Imagine there are 1000 employees in a record and application is giving error for a particular employee lets say with name “prem”. Console error says its some time inside the loop where all the records are iterated. Generally people put a break point  before the error prone line number and watches the value to find out the state. If its linear flow its good but if it is the loop then one has to wait for ( worst case 1000, best case within 10 ) repetition to get to know the root cause.

Here comes the experience of developer and facility of tool IDE which is called as conditional break point. By doing the right click on break point one can the property of conditional break point. you just need to simple give the condition ,as in if clause ->  emp.getName().equals(“prem”). By virtue of this condition the code will break only when the employee name is “prem”. This will save a lot of time to watch and analyze all the names of employees manually to find out the buggy/error prone employee object “prem”.

In such cases previously i use to do System.out.println(), recompile and run app time and again. then before check in the code need to remove systemouts. Now I realize it was such a pain and when better tricks are available 😉

For more details to set conditional break point using Eclipse visit the below link:
http://eclipse.dzone.com/tips/effective-debugging