Community
Participate
Working Groups
a video tells more than a thousand words :) http://www.poshnet.ch/jing/2010-05-15_1325.swf The breakpoints are only active when I set them during a debug session. However, as shown in the video, I'm positive that the filename I provide to rhino when compiling scripts can actually be mapped back to a workspace file. I use filenames like: {"Bundle-SymbolicName":"com.ibm.team.apt.web.ui.tests", "path":"\\resources\\gridviewer", "name":"GridViewerUpdateTest.js"} The line number I specify is 1. This happens on the latest version from CVS
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.