微信开发者工具 黑屏_微信开发者工具 黑屏的解决方案

本文主要介绍了微信开发者工具出现黑屏问题的原因及解决方案。问题在于缺少一个名为localstorage_b72da75d79277d2f5f9c30c9177be57e.json的文件。解决方案包括新建该文件并复制特定代码,或者在最新版本中找到正确路径添加json文件。
摘要由CSDN通过智能技术生成

最近遇到操蛋的开发者工具下载下来就黑屏。不知道官方怎么想的。有解决方案不嵌入到程序里,让程序员一个个去问,去下载。浪费时间。

下面具体描述,下载了N次,换了N个版本,都是有问题,怎么卸载都不管用,都是出现如下问题,黑屏

以上不止这几个人遇到同样问题,黑屏!!!!!!!!!!!!!!

4536e57eacc61abeea342d73249d3e78.png

其实就是少了一个文件

解决方案:

将这个文件设置为下面贴的代码 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路径下即可

但是,如果是最新版本的,目录结构可能会是这样

34cecbbd593bd76e9ce3ac3684b83ba4.png

所以只能进入

C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\1a695ca2de1a85735f93a43fb366c83f\WeappLocalData 这个路径。

然后添加一个json文件 localstorage_b72da75d79277d2f5f9c30c9177be57e.json

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值