json文件
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gdb server",//配置名称;在启动配置下拉菜单中显示
"type": "cppdbg",//配置类型。
"request": "launch",//请求配置类型。可以是“启动”或“附加”。
"program": "/home/cloud/soc_ow_sdk/openwrt/build_dir/target-aarch64_cortex-a53_musl/hostapd-wpad-full-internal/hostapd-2020-06-08-5a8b3662/wpad",//需要调试的可执行文件 .pkgdir/wpad/usr/sbin/
//"args": ["hostapd"],
"stopAtEntry": false,//可选参数。如果为true,则调试器应在目标的入口点停止。如果传递了进程ID,则无效。
"cwd": "/home/cloud/soc_ow_sdk/openwrt/build_dir/target-aarch64_cortex-a53_musl/hostapd-wpad-full-internal/hostapd-2020-06-08-5a8b3662",//目标的工作目录
"linux": {//特定于 Linux 的启动配置属性。
"MIMode": "gdb",//指示midebugengine将连接到的控制台调试器。允许值为“gdb”“lldb”。
"miDebuggerPath": "/home/cloud/soc_ow_sdk/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/bin/aarch64-openwrt-linux-musl-gdb",//调试器的路径。
//"targetArchitecture": "x64",
"miDebuggerServerAddress": "192.168.1.1:3559",
"externalConsole": false,//如果为true,则为调试对象启动控制台。如果为false,则在Linux和Windows上,它将出现在集成控制台中。
},
},
]
}
提示
Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
=tsv-created,name="trace_timestamp",initial="0"\n
Reading /lib/ld-musl-aarch64.so.1 from remote target...
Reading /lib/ld-musl-aarch64.so.1 from remote target...
0x0000007ff7fd2a84 in ?? ()
Loaded 'target:/lib/ld-musl-aarch64.so.1'. Symbols loaded.
ERROR: Command aborted. See the output window for additional details.
Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)