Tuesday, 19 November 2019

can I turn off optimization, so in-scope variables from closures aren't "optimized out"

As a byproduct of code optimization done by modern browsers, while debugging, you can't "see" all variables which "factually" are in scope. This is well known and has been addressed in a previous question here on SO. This feature, while most certainly useful in production is annoying me a lot during development, it slows me down (that should be obvious.)

Now my question is, is there any way to turn off this behavior? Can I edit some configuration file, or is there a browser plugin, or maybe there is a "special build version for developers" of the browser executable? I love typing my code into the console right away when I'm writing new code, so this is really bugging me.

visualSummaryIffalseConsoleLog



from can I turn off optimization, so in-scope variables from closures aren't "optimized out"

No comments:

Post a Comment