关键词搜索

源码搜索 ×
×

VM stack in Chrome

发布2019-06-18浏览506次

详情内容

http://stackoverflow.com/questions/17367560/chrome-development-tool-vm-file-from-javascript

it says:
[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).
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.
https://code.google.com/p/chromium/codesearch#search/&q="[VM]"&sq=package%3Achromium&type=cs

More tricks about javascript debugging could be found here:

https://developer.chrome.com/devtools/docs/javascript-debugging#breakpoints-dynamic-javascript
Test:

<html>
<script>
window.eval("console.log(\"ok\");debugger;");
//# sourceURL=dynamicScript.js
</script>
</html>

    相关技术文章

    点击QQ咨询
    开通会员
    返回顶部
    ×
    微信扫码支付
    微信扫码支付
    确定支付下载
    请使用微信描二维码支付
    ×

    提示信息

    ×

    选择支付方式

    • 微信支付
    • 支付宝付款
    确定支付下载