Hi,
What is the purpose of the '//# sourceURL' tag that gets added to the end of evaled scripts in HTMLElementElement.js? Mapping back to the original file would make sense if the lines matched up or if there were sourcemaps available to map the locations, but otherwise it just seems to make debugging more difficult.
In particular, I can debug my web components scripts with DevTools alright in the simple scenario, but when working on a larger project I prefer to use DevTools workspaces feature where it maps network URLs to my on disk resources so I can edit inline easily. When this is enabled, debugging is broken - dev tools jumps to the files from disk but since the line numbers don't match those from the evalled scripts I'm always at the wrong position. For my purposes I've found it most convenient to just disable the code that adds the '//# sourceURL' tokens.
I'm guessing there's no reasonable way to generate a source map on the fly, but perhaps we could just add the necessary blank lines so that the line numbers in the eval'd script line up with the original line numbers of the source file?
Thanks,
Rick