VM stack in Chrome
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>
相关文章
- Chrome OS小幅更新,Windows味儿十足
- Win10上Google Chrome上的ERR_UNSAFE_PORT错误
- Chrome资源嗅探器应用
- [PWA] Add Push Notifications to a PWA with React in Chrome and on Android
- [Debug] Use Snippets to Store Behaviors in Chrome DevTools
- javascript:null和undefined的区别(chrome 104.0.5112.101)
- Google Chrome v48.0.2564.
- [HTML 5 Performance] Benchmark functions runtime in chrome console
- [Debug] Debug Node.js Application by using Chrome Dev tools
- [PWA] Add Push Notifications to a PWA with React in Chrome and on Android
- Goolg Chrome 插件开发--Hello world
- SAP ABAP关键字在Chrome浏览器里高亮显示的实现原理 - How is ABAP keyword highlight implemented in Chrome
- 如何使用Chrome HAR保存和显示HTTP性能分析结果
- Reuse library debug in Chrome - phase1 init phase
- different color in Chrome Development Tool
- chrome主页被篡改为360该溶液的导航
- windows10卸载edge浏览器并将chrome设为默认浏览器