mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'get-value' command
This commit is contained in:
parent
aa42fb1e39
commit
8f56969997
6 changed files with 195 additions and 69 deletions
|
|
@ -43,6 +43,7 @@ namespace devtools {
|
|||
STEP,
|
||||
STEP_INTO_FUNCTION,
|
||||
RESUME,
|
||||
GET_VALUE,
|
||||
};
|
||||
|
||||
struct BreakpointEventDto {
|
||||
|
|
@ -53,9 +54,17 @@ namespace devtools {
|
|||
struct SignalEventDto {
|
||||
};
|
||||
|
||||
using ValuePath = std::vector<std::variant<std::string, int>>;
|
||||
|
||||
struct GetValueEventDto {
|
||||
int frame;
|
||||
int localIndex;
|
||||
ValuePath path;
|
||||
};
|
||||
|
||||
struct DebuggingEvent {
|
||||
DebuggingEventType type;
|
||||
std::variant<BreakpointEventDto, SignalEventDto> data;
|
||||
std::variant<BreakpointEventDto, SignalEventDto, GetValueEventDto> data;
|
||||
};
|
||||
|
||||
class DebuggingServer {
|
||||
|
|
@ -65,6 +74,9 @@ namespace devtools {
|
|||
|
||||
bool update();
|
||||
void onHitBreakpoint(dv::value&& stackTrace);
|
||||
void pause();
|
||||
|
||||
void sendValue(dv::value&& value, int frame, int local, ValuePath&& path);
|
||||
|
||||
void setClient(u64id_t client);
|
||||
std::vector<DebuggingEvent> pullEvents();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue