最近遇到操蛋的开发者工具下载下来就黑屏。不知道官方怎么想的。有解决方案不嵌入到程序里,让程序员一个个去问,去下载。浪费时间。
下面具体描述,下载了N次,换了N个版本,都是有问题,怎么卸载都不管用,都是出现如下问题,黑屏
问题https://developers.weixin.qq.com/community/develop/doc/000644cdf28218d86a5a4f32c50800
以上不止这几个人遇到同样问题,黑屏!!!!!!!!!!!!!!
其实就是少了一个文件
解决方案:
将这个文件设置为下面贴的代码 C:/User /Administrator/AppData/Local/微信开发者工具/User Data/localstorage_b72da75d79277d2f5f9c30c9177be57e.json
{
"show": false,
"currentCategory": "general",
"compiler": {
"clusterCompile": false,
"autoPreview": false,
"autoRemoteDebug": false
},
"general": {
"openLastModifiedProject": true,
"autoPreviewType": "mobile",
"autoRemoteDebugType": "mobile",
"maxLogLength": 300,
"enableNewFW": true,
"enableGPU": false,
"ignoreUnsafeProxy": false,
"locale": "zh",
"defaultWorkspace": "/Users/kunlideng/WeChatProjects"
},
"appearance": {
"theme": "dark",
"devtoolsTheme": "dark",
"fontFamily": "SF Mono",
"fontSize": 12,
"lineHeight": 20,
"simulatorAlignment": "left"
},
"edit": {
"tabSize": 2,
"insertSpaces": true,
"wrap": "on",
"minimap": false,
"gitIgnoreWindowsReturn": true,
"autoTypingsDetectEnabled": true,
"alwaysOpenFileInNewTab": false,
"autoSave": false,
"autoRefresh": false,
"saveBeforeCompile": false,
"saveBeforePreview": false,
"saveBeforeUpload": false
},
"proxy": {
"proxyType": "SYSTEM",
"proxyHost": "127.0.0.1",
"proxyPort": "12639"
},
"notification": {
"bbs": true,
"sys": true,
"alarm": true
},
"security": {
"enableServicePort": true,
"port": 19195
},
"geo": {
"enabled": false,
"latitude": 39.92,
"longitude": 116.46,
"speed": -1,
"accuracy": 65,
"altitude": 0,
"verticalAccuracy": 65,
"horizontalAccuracy": 65
},
"shortcuts": {
"_editingShortcuts": false,
"toggleToolbar": {
"modifiers": ["cmd", "shift"],
"key": "T"
},
"toggleSimulatorWindow": {
"modifiers": ["cmd", "alt"],
"key": "S"
},
"toggleEditorWindow": {
"modifiers": ["cmd", "shift"],
"key": "E"
},
"toggleFileTree": {
"modifiers": ["cmd", "shift"],
"key": "M"
},
"toggleDebugWindow": {
"key": "I",
"modifiers": ["cmd", "shift"]
},
"rebuild": {
"key": "B",
"modifiers": ["cmd"]
},
"format": {
"key": "F",
"modifiers": ["shift", "alt"]
},
"refresh": {
"key": "R",
"modifiers": ["cmd"]
},
"toggleForegroundBackgroundStatus": {
"key": "",
"modifiers": []
},
"documentationSearch": {
"key": "",
"modifiers": []
},
"gotoFile": {
"key": "P",
"modifiers": ["cmd"]
},
"gotoRecentFile": {
"key": "E",
"modifiers": ["cmd"]
},
"preview": {
"key": "P",
"modifiers": ["shift", "cmd"]
},
"upload": {
"key": "U",
"modifiers": ["shift", "cmd"]
}
},
"syncTime": 1584263702017
}
有的人说没有这个文件 localstorage_b72da75d79277d2f5f9c30c9177be57e.json 那就新建一个txt文件。改名字为这个。降代码复制进去保存即可。
也就是,将localstorage_b72da75d79277d2f5f9c30c9177be57e.json 这个文件放到AppData路径下即可
但是,如果是最新版本的,目录结构可能会是这样
所以只能进入
C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\1a695ca2de1a85735f93a43fb366c83f\WeappLocalData 这个路径。
然后添加一个json文件 localstorage_b72da75d79277d2f5f9c30c9177be57e.json
文件的下载地址 https://share.weiyun.com/5cgH1EO
打开 cmd
然后拖动开发者工具,到cmd ,然后按一次空格,--disable-gpu 吧这个复制到它后面,按一次回车。
试试吧。、
打开最新版本开发者工具一直黑屏,要怎么解决? | 微信开放社区
https://developers.weixin.qq.com/community/develop/doc/000c8cfa49c14893763a9b4d856800
这里面的官方回复和大辉的补充
mac也遇到这个问题 请问如何解决?
//我怀疑这个cli是实习生写的