Skip to content

Commit

Permalink
debugger: improve print command
Browse files Browse the repository at this point in the history
Now handles arbitrarily complex member/subscript expressions, with
pretty-printing and a configurable recursion depth.
  • Loading branch information
nunuhara committed Jan 9, 2023
1 parent d8f936f commit a55893b
Show file tree
Hide file tree
Showing 4 changed files with 342 additions and 103 deletions.
5 changes: 1 addition & 4 deletions include/debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ void dbg_print_frame(unsigned no);
void dbg_print_stack_trace(void);
void dbg_print_stack(void);
void dbg_print_vm_state(void);
struct ain_variable *dbg_get_member(const char *name, union vm_value *val_out);
struct ain_variable *dbg_get_local(const char *name, union vm_value *val_out);
struct ain_variable *dbg_get_global(const char *name, union vm_value *val_out);
struct ain_variable *dbg_get_variable(const char *name, union vm_value *val_out);
union vm_value dbg_eval_string(const char *str, struct ain_type *type_out);
struct string *dbg_value_to_string(struct ain_type *type, union vm_value value, int recursive);

#ifdef HAVE_SCHEME
Expand Down
Loading

0 comments on commit a55893b

Please sign in to comment.