Back

chrome console 中的 VM[XXX] ( chrome development tool console 's VM[number])

发布时间: 2015-01-09 05:24:00

refer to:  http://stackoverflow.com/questions/17367560/chrome-development-tool-vm-file-from-javascript 和  http://stackoverflow.com/questions/20388563/chrome-console-vm

在chrome的调试javascript的过程中,我们会看到 F12 之后出现的 console -> source 中,出现了很奇怪的 VM[111]  (见附图)

这个东西,基本是由于 eval 过来的代码产生的。 VM 等同于 virtual machine (虚拟机)的意思。 后面的数字是给它临时起的名字。( It's a dummy name to help us to distinguish code which are not directly tied to a file name, such as code created using eval and friends.)

所以,需要你进一步的DEBUG,找到对应的eval代码。 

附:

Vm Xxx In Chrome Js Console

Back