简体   繁体   English

这个Chrome调试器VM脚本是什么?

[英]What is this Chrome debugger VM script?

You can find this file by calling dir(obj) in the Chrome dev tools console and clicking the link display on the right pointing to where dir is defined in this file. 您可以通过在Chrome开发工具控制台中调用dir(obj)并单击右侧指向此文件中定义dir位置的链接显示来查找此文件。

What are the details behind this file? 这个文件背后有什么细节?

Is this the script that is part of Chrome's debugger or is it some interface with V8? 这个脚本是Chrome调试器的一部分还是V8的一些接口?

Why is there a 2007 Apple copyright at the top? 为什么2007年苹果版权最高?

When I open this file the numeric identifier after VM is always different. 当我打开这个文件时,VM之后的数字标识符总是不同的。 Where does the VMXXXX identifier come from? VMXXXX标识符来自哪里?

Are there anymore of these files publicly visible like this and, if so, how do you access them? 这些文件是否已公开显示,如果是这样,您如何访问它们?

Thanks! 谢谢!

Chrome调试器VM脚本

This file is part of Dev Tools implementation, which resides within Blink source tree: Source/core/inspector/InjectedScriptSource.js . 此文件是Dev Tools实现的一部分,它位于Blink源代码树中: Source/core/inspector/InjectedScriptSource.js

There is Apple copyright because Blink itself is fork of WebKit, at that copyright is retained from there. Apple有版权,因为Blink本身就是WebKit的分支,因为版权是从那里保留的。

VMxyz identifiers are generated by devtools themsevles for dynamically injected scripts that have no associated URL. VMxyz标识符由devtools生成,用于动态注入的没有关联URL的脚本。 See addScript method in Source/devtools/front_end/bindings/DefaultScriptMapping.js 请参阅Source/devtools/front_end/bindings/DefaultScriptMapping.js addScript方法

DevTools have a lot of JavaScript code inside of them, especially when it comes to UI which is all HTML based. DevTools里面有很多JavaScript代码,特别是涉及到基于HTML的UI。 Just browse Source/devtools/front_end/ folder in Blink Sources. 只需浏览Blink Sources中的Source/devtools/front_end/文件夹即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM