Aug 7, 2013

[Solved] Chrome Debugger Cannot Modify Local Variable

I found it's strange that Chrome Debugger doesn't allow modify modify local variables. For example:

you have a variable: instanceType, which original value is "VERTICA"
in the console, you write:
instanceType="MAPR"
But when you type instanceType again, it still shows
"VERTICA"


I did some search but found it's a know problem, and yet not be fixed in latest Chrome build. Luckily I found an easy solution, which is to use Canary Chrome:
 https://www.google.com/intl/en/chrome/browser/canary.html


With the debugger tool of Chrome Canary,



Aha, what a happy world!

If you think this article is useful, please click the ads on this page to help. Thank you very much.

No comments: