Enable regular expression for javascript debugger filenames
Reported by
framefra...@gmail.com,
Oct 3 2016
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 Steps to reproduce the problem: 1. You have an filename to debug with url parameter set (eg. timestamp). Some breakpoints are active. 2. After navigation/reload, the filename has a new timestamp. 3. Your breakpoints are gone. What is the expected behavior? You want to continue debugging. What went wrong? As the script you want to debug has another timestamp parameter, chrome thinks the script has changed and you have to re-apply all breakpoints again. Did this work before? N/A Chrome version: 53.0.2785.143 Channel: stable OS Version: 10.0 Flash Version: Shockwave Flash 23.0 r0 So it should be possible to set a condition for filename recognition at debuggung (like in breakpoints) or at least a regular expression that can verifiy the script as the same before.
,
Oct 4 2016
confirming the issue as this seems to be a feature request. Waiting for more inputs on this. Thanks,
,
Oct 7 2016
You can achieve this by using sourceURL or sourceMapURL. see: https://developers.google.com/web/updates/2013/06/sourceMappingURL-and-sourceURL-syntax-changed and: https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Debug_eval_sources
,
Oct 7 2016
I don't agree. Not all developers provide source maps or access to the source. And if the script comes dynamically generated and merged, it's not even useable. I would be happy if chrome would recognize the script as the same one - even a f*cking parameter in the url has changed after navigation and I'm not required to search the script again in the tree browser (and of course have to close the script, with the old parameter, which is no longer important). 2016-10-07 3:37 GMT+02:00 all… via monorail < monorail+v2.883107184@chromium.org>: |
|||
►
Sign in to add a comment |
|||
Comment 1 by ligim...@chromium.org
, Oct 3 2016