Header: mruby/debug.h

Overview

MRuby Debugging.

Function Summary collapse

Define Summary

#define MRUBY_DEBUG_H

Function Details

int32_t mrb_debug_get_line(mrb_state * mrb, mrb_irep * irep, ptrdiff_t pc)

get line from irep’s debug info and program counter

Returns:

  • returns -1 if not found

mrb_irep_debug_info * mrb_debug_info_alloc(mrb_state * mrb, mrb_irep * irep)

mrb_irep_debug_info_file * mrb_debug_info_append_file(mrb_state * mrb, mrb_irep_debug_info * info, const char * filename, uint16_t * lines, uint32_t start_pos, uint32_t end_pos)

void mrb_debug_info_free(mrb_state * mrb, mrb_irep_debug_info * d)