Chrome开发工具:来自javascript的[VM]文件 [英] Chrome Development Tool: [VM] file from javascript
问题描述
我在我的javascript文件(jaydata.js)中添加了一个断点,然后按进入下一个函数调用。
到达以下行时:
I added a breakpoint in my javascript file (jaydata.js) and was pressing "Step over to the next function call." When it got to a line that was:
},
弹出另一个名为 [VM](8312)的文件。我一直单击转到下一个函数调用,现在的屏幕是:
another file titled "[VM] (8312)" popped up. I kept clicking "Step over to the next function call" and now my screen is:
这些奇怪而神秘的脚本是什么[[VM](XXXX,它们在哪里
推荐答案
[VM](scriptId)
没有特殊含义,它是一个虚拟名称,可以帮助我们区分与文件名不直接相关的代码,例如使用 eval
和朋友创建的代码。
[VM] (scriptId)
has no special meaning. 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.
过去,所有这些脚本都被标记为(程序)
。
In the past, all of these scripts were just labelled (program)
.
如果您有兴趣,只需在Chromium的源代码中查找 [VM]
,您会发现这些数字在开发人员工具之外没有重要意义。
If you're interested, just look up "[VM]"
in the source code of Chromium, you will discover that these numbers have no significant meaning outside the developer tools.
[VM](scriptId)
重命名为 VMscriptId
前一阵子,这是< a href = https://chromium.googlesource.com/chromium/blink/+/669a2f29610ca8d0a8790bb829bfde4ba768e936/Source/devtools/front_end/bindings/DefaultScriptMapping.js#193 rel = noreferrer>直接链接到搜索结果如果值再次更改。
[VM] (scriptId)
was renamed to VMscriptId
a while ago, and here is the direct link to search result in case the value changes again.
这篇关于Chrome开发工具:来自javascript的[VM]文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!