June 24, 2011, 7:43 a.m.
posted by freelancer
Debugging TimesheetManagerTest End-to-End (Browser to Database)
As I mentioned earlier, debugging can be a painful experience at times. It would be nice if we could simply tell the computer what the problem is and have it fix the bug for us. Considering that's not possible today, we have to find ways to make this experience slightly more pleasant, and Eclipse does a good job.
Being able to completely debug my server-side code (web and database, for example) is perhaps my favorite feature related to debugging in Eclipse. As we discussed Chapter 8, Eclipse has plug-ins galore. One of these is the Data related plug-in that is part of the Web Tools Platform (WTP) Eclipse project. Combining this with the built-in server-side debugging features makes for a very powerful concept! Let's look at an example of what I'm referring to.
Figure shows a screenshot of Eclipse. Here I'm stepping through TimesheetManagerTest.java, inspecting the various memory variables, viewing the output in the Console view, viewing the test results in the JUnit view, andare you ready?watching the data in the database change (by manually refreshing it) right in front of my eyes (as I step over the timesheetManager.deleteTimesheet method) using the Data Output view. Now, that's cool!
6. Consolidated debugging of Time Expression in Eclipse.
7. Firefox Web Developer extension.