diff --git a/Software/Applications/VSCode/VSCode_调试脚本.md b/Software/Applications/VSCode/VSCode_调试脚本.md index de2b6dd..dcc0632 100644 --- a/Software/Applications/VSCode/VSCode_调试脚本.md +++ b/Software/Applications/VSCode/VSCode_调试脚本.md @@ -1,10 +1,10 @@ # VSCode 调试脚本 -VSCode 可以用来调试程序,通过修改 .vscode/launch.json 来支持各种调试需求。 +VSCode 可以用来调试程序,通过修改 .vscode/launch.json 来支持各种调试需求。 -## 增加调试参数 +## 1. 增加调试参数 -在 "configurations" 中增加: +在 "configurations" 中增加: ```json "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}" +```