javascript eval method
How can I watch variable values inside of javascript eval() method? And is it possible to "step into" and "step over" in eval method? For example, with a code like this: eval("if (true) { var a = 10; a += 20; alert(a); }"); I am more interested in debugging in IE9, but I would like to hear general principle as well. you can't inside the eval method. the code you give it is no code but a string. after the eval() then it becomes code and you can inspect it. This also depends on what tools you use to debug your script. In Chrome if you click Pause on exception, and execute your eval. it will