提交 2c51871c 编写于 作者: E echoorchid

review

Signed-off-by: Nechoorchid <huweidong2@huawei.com>
上级 0897020a
......@@ -154,7 +154,9 @@ struct WebComponent {
## 开启网页调试
在PC上启用端口转发,以及设置Web组件属性webDebuggingAccess为true后,便可以在PC上调试通过USB连接的开发设备上的Web组件里的网页。
设置步骤如下:
1、首先设置Web组件属性webDebuggingAccess为true。
```ts
// xxx.ets
......@@ -173,11 +175,11 @@ struct WebComponent {
2、PC上启用端口转发功能,添加TCP端口9222映射。
```ts
hdc_std fport tcp:9222 tcp:9222
hdc fport tcp:9222 tcp:9222
```
添加是否成功可以通过如下命令来查看已存在的映射关系表。
```ts
hdc_std fport ls
hdc fport ls
```
如上设置完成后,首先打开应用Web组件、访问要调试的网页,然后在PC上使用chrome浏览器访问:http://localhost:9222, 就可以在PC上调试开发设备刚才访问的网页。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册