| Summary: | Function breakpoint toggle depends on cursor position | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Michael Rennie <Michael_Rennie> | ||||
| Component: | Debug | Assignee: | Michael Rennie <Michael_Rennie> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Simon Kaegi <simon_kaegi> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | thatnitind | ||||
| Version: | 3.2 | Flags: | thatnitind:
review+
|
||||
| Target Milestone: | 3.2 RC1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
applied patch to HEAD |
Created attachment 166829 [details] fix code from HEAD using the following test script: var func1 = func1 || {}; func1.fib = function f1(n) {}; var func2 = function f2(n) {}; function f3(n){}; trying to toggle function breakpoints with the cursor to the LHS of the assignment operator will fail in the editor, because we are trying to resolve the JS element at the cursor locale, which might not be what we want. The better solution would be to compute the start position while visiting the AST to find the valid locale for the breakpoint. This would make a good RC1 fix, as it makes toggling a function breakpoint behave as expected.