[quickjs] More debugger work
This commit is contained in:
parent
0531387498
commit
743a1cc623
2 changed files with 56 additions and 13 deletions
|
|
@ -1070,15 +1070,25 @@ typedef enum JSResumeMode {
|
|||
} JSResumeMode;
|
||||
|
||||
typedef enum JSBreakReason {
|
||||
JS_BREAK_CODE_LOADED,
|
||||
JS_BREAK_BREAKPOINT,
|
||||
JS_BREAK_STEP,
|
||||
} JSBreakReason;
|
||||
|
||||
typedef struct JSBreakpoint JSBreakpoint;
|
||||
|
||||
typedef struct JSDebugEvent {
|
||||
JSBreakReason reason;
|
||||
union {
|
||||
struct {
|
||||
const char *filename;
|
||||
} loaded;
|
||||
JSBreakpoint *breakpoint;
|
||||
} u;
|
||||
} JSDebugEvent;
|
||||
|
||||
typedef JSResumeMode JSDebugCallbackFunc(JSDebugContext *ctx,
|
||||
JSBreakReason reason,
|
||||
JSBreakpoint *breakpoint,
|
||||
JSDebugEvent *event,
|
||||
void *opaque);
|
||||
void JS_SetDebugCallbackFunc(JSRuntime *rt, JSDebugCallbackFunc *bp_func,
|
||||
void *opqaue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue