Chrome Development Tool: [VM] file from javascript
Chrome Development Tool: [VM] file from javascript
[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.
update 2015-06-25
[VM] (scriptId) was renamed to VMscriptId a while ago, and here is the direct link to search result in case the value changes again.
It is abbreviation of the phrase Virtual Machine. In the Chrome JavaScript engine (called V8) each script has its own script ID.
Sometimes V8 has no information about the file name of a script, for example in the case of an eval. So devtools uses the text "VM" concatenated with the script ID as a title for these scripts.
Some sites may fetch many pieces of JavaScript code via XHR and eval it. If a developer wants to see the actual script name for these scripts she can use sourceURL. DevTools parses and uses it for titles, mapping etc.
https://blog.csdn.net/u010598271/article/details/53740778
chrome下调试本地js,不能设置断点,在控制台显示VM+数字+要调试的文件名。
解决方案:
1》、在调试<source>的左下方有一个{}图标,提示“pretty print”,点击,chrome就会另外打开一个:formatted的文件,在里面就可以调试了。
原因估计是chrome将源文件误认为是压缩过的,所以不能断点调试,重新格式化下就行了。
2》、清空缓存或重启浏览器
Chrome Development Tool: [VM] file from javascript的更多相关文章
- 如何在Chrome development tool里查看C4C前台发送的请求细节
		
我们可以在Chrome development tool的network tab里观察到从前台UI发送到后台的HTTP请求: 更多Chrome Development Tool的使用工具请查看我的博客 ...
 - 浏览器开发者工具Chrome Developer Tool
		
开发者工具Chrome Developer Tool https://developers.google.com/chrome-developer-tools/docs/profiles 一直被墙 ...
 - chrome developer tool 调试技巧
		
这篇文章是根据目前 chrome 稳定版(19.0.1084.52 m)写的, 因为 google 也在不断完善chrome developer tool, 所以 chrome 版本不同可能稍有差别. ...
 - Chrome development tools学习笔记(5)
		
调试JavaScript 随着如今JavaScript应用的越来越广泛,在面对前端工作的时候,开发人员须要强大的调试工具来高速有效地解决这个问题.我们文章的主角,Chrome DevTools就提供了 ...
 - How to enable C development in a Windows 10 development environment VM
		
To enable C development in a Windows 10 development environment VM, follow these steps: Start VS in ...
 - [转]chrome developer tool 调试技巧
		
这篇文章是根据目前 chrome 稳定版(19.0.1084.52 m)写的, 因为 google 也在不断完善chrome developer tool, 所以 chrome 版本不同可能稍有差别. ...
 - Chrome development tools学习笔记(3)
		
(上次DOM的部分做了些补充,欢迎查看Chrome development tools学习笔记(2)) 利用DevTools Elements工具来调试页面样式 CSS(Cascading Style ...
 - chrome调试本地项目, 引用本地javascript文件
		
chrome调试本地项目, 引用本地javascript文件 本地文件可以访问本地文件 修改快捷方式属性 C:\Users\xxx\AppData\Local\Google\Chrome\Applic ...
 - chrome developer tool—— 断点调试篇
		
断点,调试器的功能之一,可以让程序中断在需要的地方,从而方便其分析.也可以在一次调试中设置断点,下一次只需让程序自动运行到设置断点位置,便可在上次设置断点的位置中断下来,极大的方便了操作,同时节省了时 ...
 
随机推荐
- css3常用样式
			
.box{ //改变轴的方向 flex-direction:column; //两端对齐 justify-content:space-between; //换行 flex-wrap: wrap; // ...
 - 关于c语言的文法分析问题
			
<程序> -> <声明> | <程序> <函数> <声明> -> #include<stdio.h>|# ...
 - Resource通配符路径 ——跟我学spring3
			
转自: https:// jinnianshilongnian.iteye.com/blog/1416322
 - ado.net 断开 非断开
			
非断开 SqlConnection SqlCommand / SqlDataReader 接 断开 SqlConnection SqlDataAdapter / DataSet 接
 - win10编译maskrcnn benchmark
			
步骤 1. 按照官网的Option1安装步骤安装 https://github.com/facebookresearch/maskrcnn-benchmark/blob/master/INSTALL. ...
 - 第一章·ELKstack介绍及Elasticsearch部署
			
一.ELKstack课程大纲  二.ELKstack简介 什么是ELK? 通俗来讲,ELK是由Elasticsearch.Logstash.Kibana 三个开源软件的组成的一个组合体,这三个软件当 ...
 - Kivy 简单尝试
			
Kivy 简明教程 首先,有两个网址你不得不看: Kivy: Cross-platform Python Framework for NUI在官网逛逛,顺便看看最下面的代码,try to run it ...
 - Java ==和equals的区别
			
首先了解默认equals方法实现代码 public boolean equals(Object obj) { return (this == obj); } 1.== (1)对于基本数据类型的变量,& ...
 - js常用骚操作总结
			
打开网址 window.open("http://www.runoob.com"); 判断是否为url var url = $("#url").val(); i ...
 - python 获取安装包apk, ipa 信息
			
# -*- coding:utf-8 -*- import re import os import zipfile from biplist import * from androguard.core ...