Add VSCode debug configuration

This commit is contained in:
InvisibleUp 2023-04-01 18:17:50 -07:00
parent 30ded064a5
commit ad7240e54b
5 changed files with 47 additions and 2 deletions

3
.gitignore vendored
View File

@ -12,8 +12,9 @@
.vs/
# Visual Studio Code
.vscode/
.vscode/*
!.vscode/launch.json
!.vscode/tasks.json
# KDevelop 4
*.kdev4

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

@ -187,6 +187,6 @@ executable(
sources: MAC_SRC['Plus'] + UI_SRC + EMU_SRC + WIN_RSRC,
dependencies: [lSDL2],
include_directories: EMU_INC,
gui_app: true
#gui_app: true
)

View File

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