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:
Ben Jackson 2018-05-20 15:11:58 +01:00
commit 8437397491
4 changed files with 428 additions and 116 deletions

View 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 );
}