vscode cppdbg 相关

举报
Amrf 发表于 2020/08/06 20:20:03 2020/08/06
【摘要】 首先cppdbg选项是需要安装额外的cpptools扩展支持的;启动调试设置参考:{ "name": "case", "type": "cppdbg", "request": "launch", "program": "/xxx/aaa", "args": ["--gtest_catch_exceptions=1", "--gtest_filter=aaaa.xxx"], "stopAtEn...

首先cppdbg选项是需要安装额外的cpptools扩展支持的;

启动调试设置参考:

{
	"name": "case",
	"type": "cppdbg",
	"request": "launch",
	"program": "/xxx/aaa",
	"args": ["--gtest_catch_exceptions=1", "--gtest_filter=aaaa.xxx"],
	"stopAtEntry": false,
	"cwd": "/xxx",
	"environment": 
	[
	    { 
	     "name": "LD_LIBRARY_PATH",
	     "value": "/xxx" 
	    }    
	],
	"externalConsole": false,
	"MIMode": "gdb",
	"pipeTransport": {
	    "pipeCwd": "", "pipeProgram": "ssh.exe", "pipeArgs": ["root@xx.xx.xx.xx"],
	    "debuggerPath": "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/xxx;/usr/bin/gdb"
	},
	"sourceFileMap": { "/xxx": "d:/xxx" },
	"setupCommands": [{ "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true }],
	"logging": { "engineLogging": true }//这个选项会开启调试过程中gdb的打印
}

然后通过vscode.debug.startDebugging即可启动调试

https://hekar.github.io/luminousforts-website/doc/code/debug/

https://stackoverflow.com/questions/58478472/vs-code-does-not-stop-at-any-breakpoints-on-mac

https://github.com/microsoft/vscode-cpptools/issues/1471

https://code.visualstudio.com/docs/editor/debugging

关于设置额外的环境变量:

https://stackoverflow.com/questions/37338402/vs-code-cpptools-debugging-environment

https://code.visualstudio.com/docs/cpp/launch-json-reference

https://github.com/microsoft/vscode-cpptools/issues/616

https://github.com/microsoft/vscode-cpptools/issues/22

image.png

https://github.com/microsoft/vscode-cpptools/issues/2526

https://stackoverflow.com/questions/37338402/vs-code-cpptools-debugging-environment

https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux

https://stackoverflow.com/questions/34991934/how-to-run-c-program-with-so-file

https://github.com/Microsoft/VSLinux/issues/257

gdb set solib-search-path command

https://visualgdb.com/gdbreference/commands/set_solib-search-path

其他:

一些纯node实现的rsync逻辑的实现,目前没有发现完全支持linux侧rsync的版本;

https://github.com/ttezel/anchor

https://github.com/royalrover/node-rsync

https://www.npmjs.com/package/sync-directory

https://gist.github.com/rioki/3713041

https://developer.aliyun.com/mirror/npm/package/js-rsync

https://github.com/WebDeltaSync/WebRsync

https://www.npmjs.com/package/sftp2sync

https://github.com/lukasz-wronski/vscode-ftp-sync

node 目录hash

https://www.npmjs.com/package/folder-hash

https://www.npmjs.com/package/md5-dir

https://github.com/mcavage/node-dirsum

vscode插件获取当前打开的工作空间的路径

https://stackoverflow.com/questions/39569993/vs-code-extension-get-full-path

https://stackoverflow.com/questions/57843809/how-to-get-project-folder-path-in-visual-studio-code-extension

node tar-fs例子

https://www.codota.com/code/javascript/functions/tar-fs/extract

https://openbase.io/js/tar-stream


【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。