Skip to content

Commit

Permalink
Update snippet.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wanganxp committed Oct 12, 2019
1 parent faaa0b6 commit 2897148
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/snippet.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ uni.showToast({

### 关于 App 的调试debug

`HBuilderX 2.0.3+` 版本起开始支持 `App` 端的调试。
常规开发里,在HBuilderX的运行菜单里运行App,手机端的错误或console.log日志信息会直接打印到控制台。

如果需要更多功能,比如审查元素、打断点debug,则需要启动调试模式。自 `HBuilderX 2.0.3+` 版本起开始支持 `App` 端的调试。

#### 打开调试窗口
`HBuilderX` 中,正确运行项目: `运行 --> 运行到手机或模拟器 --> 选择设备`,项目启动后,在下方的控制台选择 `debug` 图标。
Expand Down Expand Up @@ -172,6 +174,7 @@ Tip
- vue页面也可以在微信开发者工具里调试,除了plus API,其他是一样的,微信开发者工具的查看`Dom`和网络和存储等调试工具相对而言更完善些。
注意:即使不发布微信小程序、只发布`App`,也需要安装微信开发者工具。
- uni-app的App端没有5+App那种webkit remote debug,因为uni-app的js不是运行在webview里,而是独立的jscore里。
- 部分manifest配置,如三方sdk配置,需要打包后生效的,可以打包一个自定义运行基座。打包自定义基座后运行这个自定义基座,同样可以真机运行和debug。打包正式包将无法真机运行和debug。


### 持续集成
Expand Down

0 comments on commit 2897148

Please sign in to comment.