77 if (level < debug_level) {
78 fprintf(stderr,
"%*s", indent_level,
"");
90 vfprintf(stderr, format, ap);
97 if (level < debug_level) {
100 fprintf(stderr,
"DBG> %s: %s\n", header,
116 if (level < debug_level) {
117 fprintf(stderr,
"DBG> %s: %s\n", header,
rb_id2name(
id));
126 if (level < debug_level) {
127 fprintf(stderr,
"DBG> %s: %s (%u)\n", header,
142 #define SET_WHEN(name, var) do { \
143 if (len == sizeof(name) - 1 && \
144 strncmp(str, (name), len) == 0) { \
152 #if defined _WIN32 && defined _MSC_VER && _MSC_VER >= 1400
153 SET_WHEN(
"rtc_error", ruby_w32_rtc_error);
155 fprintf(stderr,
"unexpected debug option: %.*s\n", len, str);
VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE obj)
int * ruby_initial_gc_stress_ptr
enum ruby_method_ids method_ids
void ruby_each_words(const char *, void(*)(const char *, int, void *), void *)
enum ruby_tag_type tag_type
void ruby_debug_printf(const char *format,...)
int ruby_debug_print_indent(int level, int debug_level, int indent_level)
#define ENC_CODERANGE_MASK
#define ENC_CODERANGE_7BIT
const VALUE RUBY_FL_USER19
const SIGNED_VALUE RUBY_NODE_LMASK
const union @2 ruby_dummy_gdb_enums
#define ENC_CODERANGE_UNKNOWN
#define ENC_CODERANGE_BROKEN
#define ENC_CODERANGE_VALID
#define SET_WHEN(name, var)
register unsigned int len
void ruby_set_debug_option(const char *str)
#define StringValueCStr(v)
#define ENCODING_INLINE_MAX
NODE * ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node)
const char * ruby_node_name(int node)
enum ruby_special_consts special_consts
enum ruby_value_type value_type
void ruby_debug_print_v(VALUE v)
static void set_debug_option(const char *str, int len, void *arg)
const char * rb_id2name(ID id)
void ruby_debug_breakpoint(void)
const VALUE RUBY_ENCODING_MASK
ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id)