日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

vscode配置问题

發布時間:2024/9/30 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 vscode配置问题 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

未能分析“f:\Microsoft VS Code\aC.vscode\c_cpp_properties.json”: Unexpected token / in JSON at position

Win+R --> gcc -v -E -x c++ -

修改“c_cpp_properties.json”文件:

配置成功:

“1:c_cpp_properties.json”文件參考代碼:

{"configurations": [{"name": "Linux","includePath": ["F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++","F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32","F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward","F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include","F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed","F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include"],"defines": [],"compilerPath": "/root/esp8266/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc","cStandard": "c11","cppStandard": "c++17","intelliSenseMode": "gcc-x64","browse": {"path": ["${workspaceFolder}","/root/esp8266_3.2/ESP8266_RTOS_SDK-3.2"],"limitSymbolsToIncludedHeaders": true}}],"version": 4 }

2:launch.json:

{"version": "0.2.0","configurations": [{"name": "(gdb) Launch", // 配置名稱,將會在啟動配置的下拉菜單中顯示"type": "cppdbg", // 配置類型,這里只能為cppdbg"request": "launch", // 請求配置類型,可以為launch(啟動)或attach(附加)"program": "${workspaceFolder}/${fileBasenameNoExtension}.exe", // 將要進行調試的程序的路徑"args": [], // 程序調試時傳遞給程序的命令行參數,一般設為空即可"stopAtEntry": false, // 設為true時程序將暫停在程序入口處,一般設置為false"cwd": "${workspaceFolder}", // 調試程序時的工作目錄,一般為${workspaceRoot}即代碼所在目錄 workspaceRoot已被棄用,現改為workspaceFolder"environment": [],"externalConsole": true, // 調試時是否顯示控制臺窗口,一般設置為true顯示控制臺"MIMode": "gdb","miDebuggerPath": "F:/mingw64/bin/gdb.exe", // miDebugger的路徑,注意這里要與MinGw的路徑對應"preLaunchTask": "g++", // 調試會話開始前執行的任務,一般為編譯程序,c++為g++, c為gcc"setupCommands": [{"description": "Enable pretty-printing for gdb","text": "-enable-pretty-printing","ignoreFailures": false}]}] }

3:tasks.json:

{"version": "2.0.0","command": "g++","args": ["-g","${file}","-o","${fileBasenameNoExtension}.exe"],"problemMatcher": {"owner": "cpp","fileLocation": ["relative","${workspaceFolder}"],"pattern": {"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$","file": 1,"line": 2,"column": 3,"severity": 4,"message": 5}} }

??

參考文章:
https://blog.csdn.net/weixin_40694527/article/details/84251461

https://blog.csdn.net/fdfdsds/article/details/102248876

總結

以上是生活随笔為你收集整理的vscode配置问题的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。