From b49accccbdc357339c21cc7e83f640f28e4c3ec4 Mon Sep 17 00:00:00 2001 From: andrew Date: Fri, 13 Nov 2020 15:03:54 +0000 Subject: [PATCH] Changed default GDB extension as I use CCLS language server and it wasn't playing nice with Microsoft C++/C extension I think CCLS + Native Debug gives a better experience --- .vscode/extensions.json | 2 +- .vscode/launch.json | 20 ++++---------------- README.md | 2 +- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index dcf3837..8dfa3ee 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,3 @@ { - "recommendations": ["ms-vscode.cpptools"] + "recommendations": ["webfreak.debug"] } diff --git a/.vscode/launch.json b/.vscode/launch.json index 2cfdb05..67ca709 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,24 +2,12 @@ "version": "0.2.0", "configurations": [ { - "name": "g++ build and debug active file", - "type": "cppdbg", + "type": "gdb", "request": "launch", - "program": "${workspaceFolder}/build/bin/demo", - "args": [], - "stopAtEntry": false, + "name": "Launch Program", + "target": "${workspaceFolder}/build/bin/demo", "cwd": "${workspaceFolder}", - "environment": [], - "externalConsole": false, - "MIMode": "gdb", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - } - ], - "preLaunchTask": "Build" + "valuesFormatting": "parseText" } ] } diff --git a/README.md b/README.md index c3f6fd0..0c4a46c 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Using a PC simulator instead of an embedded hardware has several advantages: ## Requirements This project is configured for VSCode and only tested on Linux, although this may work on OSx or WSL. It requires a working version of GCC, GDB and make in your path. -To allow debugging inside VSCode you will also require the C/C++ Tools extension [Extension](https://code.visualstudio.com/docs/languages/cpp) or other suitable debugger. +To allow debugging inside VSCode you will also require a GDB [extension](https://marketplace.visualstudio.com/items?itemName=webfreak.debug) or other suitable debugger. * **SDL** a low level driver library to use graphics, handle mouse, keyboard etc.