Skip to content

Commit

Permalink
updates for renamed debugger output
Browse files Browse the repository at this point in the history
  • Loading branch information
cademack committed Aug 27, 2024
1 parent 38b5916 commit dced8d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debugger/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export enum RuntimeEvent {
export enum RuntimeStackType {
CALL = "Call", // The amalgam "call" stack
CONSTRUCTION = "Construction", // The construction stack
INTERPRET_NODE = "Interpret node", // Standard debugger call stack
INTERPRET_NODE = "Opcode", // Standard debugger call stack
}

/** The types of breakpoints */
Expand Down Expand Up @@ -186,7 +186,7 @@ export class AmalgamRuntime extends EventEmitter {
breakpointLine: /^ {2}(?<line>\d+)(?: (?<file>.+))?$/gm,
// Breakpoints and stack are matched via the header line and existing subsequent nested lines
breakpoints: /^(?<type>Line) Breakpoints:\n(?<brs>^(?:\s{2}.+)+)$/gm,
stack: /^(?<type>Interpret node) stack:\n(?<frames>^(?:\s{2}.+)+)$/gm,
stack: /^(?<type>Opcode) stack:\n(?<frames>^(?:\s{2}.+)+)$/gm,
// Expression results match all lines up to final empty line
expression: /^(?<value>[\s\S]+)\n{2}$/gm,
// Results match all lines starting with 2 spaces
Expand Down

0 comments on commit dced8d5

Please sign in to comment.