| Summary: | Expressions -> Create watch should regard context | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Lysathor <lysathor> |
| Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | darin.eclipse |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Note: the platform's APIs for creation watch expressions currently pass in the selected object/variable in the tree, but we'd need to have the platform pass in the IStructuredSelection (possibly a TreeSelection) in order to determine the path to the variable (since variable's don't have back pointers). |
During debugging: In "Expressions" open tree of an object (e.g. "myobj"). Select a field of that class (e.g. "myfield"). Click with mouse right button and select "Watch". This results in a watch expression "myfield" that does not work because the context is not inside the class. The created watch should be "myobj.myfield" instead of "myfield". Example MyObj { public int myfield=0; } void test() { MyObj myobj = new MyObj(); //add breakpoint here int x = myobj.myfield; } Another wish: Additionally Drag & Drop of a field in "Expressions" should work the same way and create an expression for that field (currently no expression is created). Another wish: "Expressions" should honor "Detail Formatters". "Variables" does. -- Configuration Details -- Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.java.product) Installed Features: org.eclipse.jdt 3.6.0.v20100526-0800-7z8XFUJFMTfCWGoVuHImpms9H155