收藏
回答

真机调试: 等待同步 API getStorage 调用

框架类型 问题类型 操作系统 工具版本
小程序 Bug macOS 1.06.2303220

真机调试时先是提示:等待同步 API getStorage 调用

然后卡住一会儿,接下报如下错误,根本调试不了。上一个版本都不会。


(unknown) MiniProgramError

APP-SERVICE-SDK:setStorageSync:fail timeout

Error: APP-SERVICE-SDK:setStorageSync:fail timeout

    at new $d (eval at Ce.t.call.document (http://127.0.0.1:45505/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:888809)

    at Object.N5 [as setStorageSync] (eval at Ce.t.call.document (http://127.0.0.1:45505/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:1538641)

    at e.<computed> (eval at Ce.t.call.document (http://127.0.0.1:45505/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:1542259)

    at Object.n4.<computed> (eval at Ce.t.call.document (http://127.0.0.1:45505/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:1542809)

    at Object.c [as setStorageSync] (eval at Ce.t.call.document (http://127.0.0.1:45505/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:1021452)

    at pt.onLaunch (weapp:///app.js:24:8)

    at pt.eval (eval at Ce.t.call.document (http://127.0.0.1:45505/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:2482207)

    at new pt (eval at Ce.t.call.document (http://127.0.0.1:45505/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:2483326)

    at r.eval (eval at Ce.t.call.document (http://127.0.0.1:45505/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:2483452)

    at eval (eval at Ce.t.call.document (http://127.0.0.1:45505/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:2461160)

回答关注问题邀请回答
收藏

1 个回答

  • 不为别的
    不为别的
    2023-06-09

    1、在应用中删除“微信web开发者工具” 

    2、删除一下几个配置和缓存文件:

         1.~/Library/Application Support/微信web开发者工具 

         2.~/Library/Preferences/com.tencent.wechat.devtools.plist 或类似文件

         3.~/Library/Caches/微信web开发者工具 

    3、重新安装“微信web开发者工具” 


    

    完美解决。


    2023-06-09
    有用
    回复
登录 后发表内容