Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | import type { VariableMapData } from "lib/compiler/compileData";
import type { EntityType } from "shared/lib/scripts/context";
export type DebuggerScriptContext = {
address: number;
bank: number;
current: boolean;
closestSymbol: string;
closestGBVMSymbol?: {
scriptSymbol: string;
scriptEventId: string;
sceneId: string;
entityType: EntityType;
entityId: string;
scriptKey: string;
};
stackString: string;
};
export type DebuggerDataPacket =
| {
action: "initialized";
}
| {
action: "update-globals";
data: number[];
vram: string;
background: string;
isPaused: boolean;
scriptContexts: DebuggerScriptContext[];
currentSceneSymbol: string;
currentScriptSymbol: string;
currentScriptAddr: number;
currentScriptPCAddr: number;
};
export type DebuggerInitData = {
memoryMap: Record<string, number>;
globalVariables: Record<string, number>;
pauseOnScriptChanged: boolean;
pauseOnWatchedVariableChanged: boolean;
breakpoints: string[];
watchedVariables: string[];
variableMap: Record<string, VariableMapData>;
};
export enum BackgroundPreviewType {
BACKGROUND,
OVERLAY,
}
|