Community
Participate
Working Groups
Build Identifier: 20100917-0705 I think it would be useful if Eclipse provided the ability to save a snapshot of the local objects (as shown in the "Variables" view of the Debug perspective). I'd like to elaborate on the utility with an example. Say an Exception's raising in line 100 of some Class. We've toggled a breakpoint in that method() to see what's going on. The whole system is running when execution stops at this breakpoint. Now let's say we clearly see why the method is failing. Right now I'd like to reproduce this on a Unit Test to ensure the patch applied will work fine. To Unit Test it I'd need to reproduce the failure conditions: the method's parameters and other objects its using, like Class's attributes. If only I could take a snapshot of that. It would be enouhg to mock all live objects, wouldn't it? For every parameter and attribute I could have a Mock object that would be part of the setup() method of my Unit Test. The point is being able to reproduce the minimum systems' conditions for that moment later in a Unit Test. Reproducible: Always Steps to Reproduce: Does Not Apply.
I just wanted to say that, would this RFE be interesting for the Eclipse Community, I'd be delighted to contribute if some mentoring would be available.