| Summary: | Only breakpoints set during a debug session do actually break | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Michael Schneider <michschn> | ||||
| Component: | Debug | Assignee: | Simon Kaegi <simon_kaegi> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Simon Kaegi <simon_kaegi> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | david_williams, Michael_Rennie, thatnitind | ||||
| Version: | 3.2 | Flags: | david_williams:
pmc_approved+
Michael_Rennie: review+ thatnitind: review+ |
||||
| Target Milestone: | 3.2 RC2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | PMC_approved | ||||||
| Attachments: |
|
||||||
|
Description
Michael Schneider
I was able to reproduce this fairly easily as part of today's test pass. We need to investigate a fix this for RC2. Created attachment 169179 [details]
proposed patch
+1 perfect. As it stands the mapping between workspace resources and script uris is broken and this prevent breakpoints from working in mainline cases. As a result any breakpoints set in the workspace before a script is loaded by the vm being debugger are being ignored. The breakage occured because the code path where we were requesting the breakpoint set were different based on whether the script was already loaded before the breakpoint was set or vice-versa. This patch corrects workspace relative path usage so that all script paths are valid URIs that either map perfectly to a workspace resource or else are treated as external source. The same codepath is now used for both breakpoints set before and after the debugger loads a script. pretty large change, but I agree, mainline case that deserves to work right. Thanks. Fixed in HEAD Thanks all. . this seems to work now, however the JavaScript load breakpoints are acting weired now. I do not know if this is an issue with my setup or not. Do script load breakpoints still work for you? (In reply to comment #8) > Do script load breakpoints still work for you? Thanks and sorry I missed this in my tests. Absolute URIs do work, but the more typical workspace one's do not as I missed this one. I've opened bug 313782 for RC3 and attached a patch and this now works for me. |