增加 VSCode 远程调试方法.
Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
parent
ef96e16bb1
commit
75cbf6855b
|
@ -1,10 +1,10 @@
|
||||||
# VSCode 调试脚本
|
# VSCode 调试脚本
|
||||||
|
|
||||||
VSCode 可以用来调试程序,通过修改 .vscode/launch.json 来支持各种调试需求。
|
VSCode 可以用来调试程序,通过修改 .vscode/launch.json 来支持各种调试需求。
|
||||||
|
|
||||||
## 增加调试参数
|
## 1. 增加调试参数
|
||||||
|
|
||||||
在 "configurations" 中增加:
|
在 "configurations" 中增加:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"configurations": [
|
"configurations": [
|
||||||
|
@ -16,4 +16,17 @@ VSCode 可以用来调试程序,通过修改 .vscode/launch.json 来支持各
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
可在调试时增加程序入口参数。
|
可在调试时增加程序入口参数。
|
||||||
|
|
||||||
|
## 2. ARM 交叉编译远程调试
|
||||||
|
|
||||||
|
在 "configurations" 中增加并修改:
|
||||||
|
|
||||||
|
```json
|
||||||
|
"program": "${YOUR/PROGRAM/FILE}",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"linux": {
|
||||||
|
"miDebuggerPath": "${CROSS/GDB}",
|
||||||
|
},
|
||||||
|
"miDebuggerServerAddress": "${SERVER IP}:${SERVER PORT}"
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue