From 75cbf6855b786d82c2850fec02d3303cfdd75e41 Mon Sep 17 00:00:00 2001 From: "chen.yang" Date: Sat, 9 Oct 2021 20:39:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20VSCode=20=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E8=B0=83=E8=AF=95=E6=96=B9=E6=B3=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chen.yang --- .../Applications/VSCode/VSCode_调试脚本.md | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) 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}" +```