Add VSCode debug configuration

This commit is contained in:
InvisibleUp 2023-04-01 18:17:50 -07:00
parent c0b9b7bcea
commit 3043ebe21e
4 changed files with 60 additions and 5 deletions

21
.gitignore vendored
View File

@ -1,12 +1,23 @@
# Binaries
*.exe
*.obj
.vscode/*
bld
*.dsk
*.ROM
# Visual Studio
.vs/*
.vs/
# Visual Studio Code
.vscode/*
!.vscode/launch.json
!.vscode/tasks.json
# KDevelop 4
*.kdev4
*.pdb
# Meson
build/
.vs/*
make/
subprojects/
subprojects/
reconfigure/

20
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,20 @@
{
// 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": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/build/microvmac.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build/",
"environment": [],
"console": "externalTerminal",
"preLaunchTask": "${defaultBuildTask}"
}
]
}

23
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,23 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: compile with Meson",
"command": "meson",
"args": [
"compile",
],
"options": {
"cwd": "${workspaceFolder}/build"
},
"problemMatcher": [
"$msCompile"
],
"group": {
"kind": "build",
"isDefault": true
},
}
],
"version": "2.0.0"
}

View File

@ -7,6 +7,7 @@
/* Load or create config and prepare for use */
#pragma once
#include <stdint.h>
bool Config_TryInit();