Actually connect to a real debug server and add some basic debugging
UI is totally placeholder Step over/step in are the only supported commands Hardcoded launch config using a specific debug adapter that happened to work Adds a trivial log file hack and fixes the protocol handler for bytes
This commit is contained in:
parent
cd2ccedcb6
commit
8437397491
4 changed files with 428 additions and 116 deletions
38
support/test/cpp/simple_c_program/test_c.cpp
Normal file
38
support/test/cpp/simple_c_program/test_c.cpp
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#include <iostream>
|
||||
|
||||
namespace Test
|
||||
{
|
||||
struct TestStruct
|
||||
{
|
||||
bool isInt;
|
||||
|
||||
union {
|
||||
int somethingInt;
|
||||
char somethingChar;
|
||||
} something;
|
||||
};
|
||||
|
||||
TestStruct _t;
|
||||
|
||||
void bar( TestStruct b )
|
||||
{
|
||||
std::string s;
|
||||
s += b.isInt ? b.something.somethingInt : b.something.somethingChar;
|
||||
std::cout << s << '\n';
|
||||
}
|
||||
|
||||
void foo( TestStruct m )
|
||||
{
|
||||
TestStruct t{ true, 11 };
|
||||
bar( t );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int main ( int argc, char ** argv )
|
||||
{
|
||||
int x{ 10 };
|
||||
|
||||
Test::TestStruct t{ true, 99 };
|
||||
foo( t );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue