How to force Chrome's script debugger to reload javascript?

前端 未结 15 1935
天涯浪人
天涯浪人 2020-12-12 09:56

I really like the ability to edit javascript in the chrome debugger however, I find that it can be really problematic getting the debugger to re-fetch the JavaScript from th

15条回答
  •  悲&欢浪女
    2020-12-12 10:08

    It seems as the Chrome debugger loads source files into memory and wont let them go despite of browser cache updates, i.e. it has its own cache apart from the browser cache that is not in sync. At least, this is the case when working with source mapped files (I am debugging typescript sources). After successfully refreshing browser cache and validating that by browsing directly to the source file, you download the updated file, but as soon as you reopen the file in the debugger it will keep returning the old file no matter the version from the ordinary browser cache. Very anoying indeed.

    I would consider this a bug in chrome. I use version Version 46.0.2490.71 m.

    The only thing that helps, is restarting chrome (close down all chrome browsers).

提交回复
热议问题