public DebugInfo Method_GetDebugInfo (long id) {
var res = SendReceive (CommandSet.METHOD, (int)CmdMethod.GET_DEBUG_INFO, new PacketWriter ().WriteId (id));
DebugInfo info = new DebugInfo ();
info.max_il_offset = res.ReadInt ();
info.filename = res.ReadString ();
int n_il_offsets = res.ReadInt ();
info.il_offsets = new int [n_il_offsets];
info.line_numbers = new int [n_il_offsets];
for (int i = 0; i < n_il_offsets; ++i) {
info.il_offsets [i] = res.ReadInt ();
info.line_numbers [i] = res.ReadInt ();
}
return info;
}