Ruby debugger

Page 107

Ruby Debugger

goto string; } if (rb_exec_recursive(io_puts_ary, argv[i], out)) { continue; } line = rb_obj_as_string(argv[i]); string: rb_io_write(out, line); if (RSTRING_LEN(line) == 0 || ! str_end_with_asciichar(line, '\n')) { rb_io_write(out, rb_default_rs); } } // Added printf statement in the code printf("in rb_io_puts in io.c\n",line); return Qnil; } Output: x+y= in rb_io_puts in io.c 12 in rb_io_puts in io.c x*y= in rb_io_puts in io.c 32 in rb_io_puts in io.c x/y= in rb_io_puts in io.c 2 in rb_io_puts in io.c

100 | P a g e


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.