linux cpp vscode远程调试 的配置
生活随笔
收集整理的這篇文章主要介紹了
linux cpp vscode远程调试 的配置
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
文章目錄
- launch.json
- tasks.json
launch.json
{// 使用 IntelliSense 了解相關(guān)屬性。 // 懸停以查看現(xiàn)有屬性的描述。// 欲了解更多信息,請(qǐng)?jiān)L問(wèn): https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "g++ - 生成和調(diào)試活動(dòng)文件","type": "cppdbg","request": "launch","program": "${fileDirname}/${fileBasenameNoExtension}","args": [],"stopAtEntry": false,"cwd": "${fileDirname}","environment": [],"externalConsole": false,"MIMode": "gdb","setupCommands": [{"description": "為 gdb 啟用整齊打印","text": "-enable-pretty-printing","ignoreFailures": true}],"preLaunchTask": "C/C++: g++ 生成活動(dòng)文件","miDebuggerPath": "/usr/bin/gdb"}] }tasks.json
{"tasks": [{"type": "cppbuild","label": "C/C++: g++ 生成活動(dòng)文件","command": "/usr/bin/g++","args": ["-g","${file}","-std=c++11","-o","${fileDirname}/${fileBasenameNoExtension}"],"options": {"cwd": "${fileDirname}"},"problemMatcher": ["$gcc"],"group": {"kind": "build","isDefault": true},"detail": "調(diào)試器生成的任務(wù)。"}],"version": "2.0.0" }總結(jié)
以上是生活随笔為你收集整理的linux cpp vscode远程调试 的配置的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 增长黑客笔记
- 下一篇: 批量kill掉linux中符合某些字段的