提前安装Remote Develop插件,确保vscode可以远程到目标主机,且目标主机上也要通过vscode安装c++开发相关插件
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "g++ - 生成和调试活动文件",
"type": "cppdbg",
"request": "launch", //如果launch不行换成attach
"program": "${workspaceFolder}/trunk/objs/srs",
"args": ["-c" ,"${workspaceFolder}/trunk/conf/srs.conf"],
"stopAtEntry"
本文介绍了如何使用Visual Studio Code (VSCode) 的Remote Develop插件进行远程调试SRS。首先,确保在目标主机上安装了VSCode及C++开发插件。接着,配置launch.json文件,设置attach模式,从而实现通过附加进程调试SRS。
订阅专栏 解锁全文
1080

被折叠的 条评论
为什么被折叠?



