Add ClearBreakpoints API
Add a test which actually triggers the mappings and fires up vimspector with the cpptools debugger.
This commit is contained in:
parent
e10a13e758
commit
470c64603a
11 changed files with 155 additions and 19 deletions
7
tests/testdata/cpp/simple.cpp
vendored
7
tests/testdata/cpp/simple.cpp
vendored
|
|
@ -1,7 +0,0 @@
|
|||
#include <iostream>
|
||||
|
||||
int main( int argc, char ** )
|
||||
{
|
||||
printf( "this is a test %d", argc );
|
||||
return 0;
|
||||
}
|
||||
1
tests/testdata/cpp/simple/.gitignore
vendored
Normal file
1
tests/testdata/cpp/simple/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
simple
|
||||
18
tests/testdata/cpp/simple/.vimspector.json
vendored
Normal file
18
tests/testdata/cpp/simple/.vimspector.json
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"configurations": {
|
||||
"cpptools-run": {
|
||||
"adapter": "vscode-cpptools",
|
||||
"configuration": {
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceRoot}/simple",
|
||||
"args": [],
|
||||
"cwd": "${workspaceRoot}",
|
||||
"environment": [],
|
||||
"externalConsole": true,
|
||||
"stopAtEntry": true,
|
||||
"MImode": "${VIMSPECTOR_MIMODE}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
7
tests/testdata/cpp/simple/Makefile
vendored
Normal file
7
tests/testdata/cpp/simple/Makefile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
CXXFLAGS=-g -O0
|
||||
|
||||
simple: simple.cpp
|
||||
|
||||
clean:
|
||||
rm -f simple
|
||||
rm -rf simple.dSYM
|
||||
18
tests/testdata/cpp/simple/simple.cpp
vendored
Normal file
18
tests/testdata/cpp/simple/simple.cpp
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include <iostream>
|
||||
|
||||
namespace
|
||||
{
|
||||
void foo( int bar )
|
||||
{
|
||||
int unused;
|
||||
|
||||
printf( "%d\n", bar );
|
||||
}
|
||||
}
|
||||
|
||||
int main( int argc, char ** )
|
||||
{
|
||||
printf( "this is a test %d\n", argc );
|
||||
foo( argc );
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue