missfei
missfei
  • 发布:2022-09-19 11:02
  • 更新:2022-09-19 15:46
  • 阅读:527

【报Bug】不能启动调试模式

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10 64

HBuilderX版本号: 3.6.3

示例代码:

(node:20368) UnhandledPromiseRejectionWarning: Error: spawn UNKNOWN
10:59:49.262 at ChildProcess.spawn (internal/child_process.js:408:11)
10:59:49.262 at Object.spawn (child_process.js:553:9)
10:59:49.263 at Launcher.launch (F:\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\Launcher.js:132:40)
10:59:49.263 at async Object.exports.launchHeadless (F:\HBuilderX\plugins\uniapp-debugger\node_modules\@dcloudio\uni-debugger\src\server\headless.js:16:13)
10:59:49.263 (node:20368) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
10:59:49.263 (node:20368) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

操作步骤:

启动调试就报错

预期结果:

正常打开调试模式

实际结果:

启动调试就报错

bug描述:

真机调试启动。就报错然后白屏

(node:20368) UnhandledPromiseRejectionWarning: Error: spawn UNKNOWN
10:59:49.262 at ChildProcess.spawn (internal/child_process.js:408:11)
10:59:49.262 at Object.spawn (child_process.js:553:9)
10:59:49.263 at Launcher.launch (F:\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\Launcher.js:132:40)
10:59:49.263 at async Object.exports.launchHeadless (F:\HBuilderX\plugins\uniapp-debugger\node_modules\@dcloudio\uni-debugger\src\server\headless.js:16:13)
10:59:49.263 (node:20368) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
10:59:49.263 (node:20368) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

2022-09-19 11:02 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

uni-debugger调试插件确实存在问题,下个版本更新,届时,请升级

DCloud_UNI_GSQ

DCloud_UNI_GSQ

参考一下:https://ask.dcloud.net.cn/question/153604

  • missfei (作者)

    执行完后

    F:\HBuilderX>npx patch-hbuilderx-plugins

    ? HBuilderX Path F:\HBuilderX

    HBuilderX Version: 3.6.3.20220917

    (node:24864) UnhandledPromiseRejectionWarning: Error: could not find commit hash for v3.6.3.20220917

    at Degit._cloneWithTar (F:\Program Files\nodejs\node_cache_npx\ab8e574058bea07e\node_modules\degit\dist\index-688c5d50.js:14258:10)

    at processTicksAndRejections (internal/process/task_queues.js:97:5)

    at async Degit.clone (F:\Program Files\nodejs\node_cache_npx\ab8e574058bea07e\node_modules\degit\dist\index-688c5d50.js:14096:4)

    at async patch (F:\Program Files\nodejs\node_cache_npx\ab8e574058bea07e\node_modules\patch-hbuilderx-plugins\scripts\patch.js:43:3)

    (node:24864) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

    (node:24864) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

    还是不行

    2022-09-19 15:59

  • missfei (作者)

    F:\HBuilderX>npx patch-hbuilderx-plugins

    Need to install the following packages:

    patch-hbuilderx-plugins

    2022-09-19 16:00

  • DCloud_UNI_GSQ

    回复 5***@qq.com: 执行 npx patch-hbuilderx-plugins 也会报错是吧

    2022-09-19 17:27

  • DCloud_UNI_GSQ

    你之前有没有成功使用过其他版本的HBuilderX进行调试?

    2022-09-19 17:28

  • missfei (作者)

    回复 DCloud_UNI_GSQ: 也是会报错,没更新之前可以用,更新后就错了,

    2022-09-22 12:04

  • DCloud_UNI_GSQ

    回复 5***@qq.com: 重新安装HBuilderX试试呢

    2022-10-09 15:21

该问题目前已经被锁定, 无法添加新回复