-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from matepek/advanced-debug-config
debug config in advanced
- Loading branch information
Showing
13 changed files
with
149 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ node_modules | |
|
||
out | ||
|
||
/test/cpp/build | ||
|
||
*.vsix | ||
.vscode-test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as vscode from 'vscode'; | ||
|
||
export type DebugConfig = vscode.DebugConfiguration | null | 'extensionOnly' | string; | ||
|
||
export type DebugConfigTemplateSource = | ||
| 'fromLaunchJson' | ||
| 'fromLaunchJsonByName' | ||
| 'userDefined' | ||
| 'vadimcn.vscode-lldb' | ||
| 'ms-vscode.cpptools' | ||
| 'webfreak.debug'; | ||
|
||
export type DebugConfigData = { | ||
template: vscode.DebugConfiguration; | ||
source: DebugConfigTemplateSource; | ||
launchSourceFileMap?: Record<string, string>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"cmake.configureOnOpen": true, | ||
"testMate.cpp.test.advancedExecutables": [ | ||
{ | ||
"pattern":"build/**/*{test,Test,TEST}*", | ||
"runTask": { | ||
"before": ["build_all"] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "echo", | ||
"type": "shell", | ||
"command": "echo Hello ${command:cmake.buildDirectory}", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"type": "cmake", | ||
"label": "build_all", | ||
"command": "build", | ||
"targets": [ | ||
"all" | ||
], | ||
"preset": "${command:cmake.activeBuildPresetName}", | ||
"group": "build", | ||
"problemMatcher": [], | ||
"detail": "CMake template build task" | ||
} | ||
] | ||
} |