MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / InspectVariable

Method InspectVariable

neo/tools/debugger/DebuggerClient.cpp:272–284  ·  view source on GitHub ↗

================ rvDebuggerClient::InspectVariable Instructs the client to inspect the given variable at the given callstack depth. The variable is inspected by sending a DBMSG_INSPECTVARIABLE message to the server which will in turn respond back to the client with the variable value ================ */

Source from the content-addressed store, hash-verified

270================
271*/
272void rvDebuggerClient::InspectVariable ( const char* name, int callstackDepth )
273{
274 idBitMsg msg;
275 byte buffer[MAX_MSGLEN];
276
277 msg.Init( buffer, sizeof( buffer ) );
278 msg.BeginWriting();
279 msg.WriteShort ( (short)DBMSG_INSPECTVARIABLE );
280 msg.WriteShort ( (short)(mCallstack.Num()-callstackDepth) );
281 msg.WriteString ( name );
282
283 SendPacket ( msg.GetData(), msg.GetSize());
284}
285
286/*
287================

Callers 5

ScriptWndProcMethod · 0.80
UpdateWatchMethod · 0.80
ProcessNetMessageMethod · 0.80
AddWatchMethod · 0.80
SetVariableMethod · 0.80

Calls 7

BeginWritingMethod · 0.80
InitMethod · 0.45
WriteShortMethod · 0.45
NumMethod · 0.45
WriteStringMethod · 0.45
GetDataMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected