39. Debugging in CRuby
●
p || printf
●
irb
●
ruby-debug || bybug
mruby has no debugger (yet)
–
田中先生 will develop mruby debugger (in
this year?)
40. Issues in mruby
●
embedding into C/C++ apps
–
mruby's code is just a part of application
–
We need to debug C/C++ code AND ruby code
●
ruby-debug is only Ruby-level debugger
–
GDB && ruby-debug ??
41. What we want to do
●
adding breakpoint in Ruby AND C
●
step over/into/return in Ruby AND C
●
show stacktrace in Ruby AND C
●
show variable in Ruby AND C
–
it's different from ruby-debug
42. We can do them in C level
https://www.sourceware.org/gdb/
44. How to debug mrubyHow to debug mruby
RubyConf.tw 2014RubyConf.tw 2014
Team YamanekkoTeam Yamanekko
Yurie Yamane / Masayoshi TakahashiYurie Yamane / Masayoshi Takahashi
make a debugger tomake a debugger to
45. Our debugger status
●
just started (not finished yet Orz)
●
We talk how it works, showing
simple demo with gdb and Eclipse
plugin
74. Eclipse + CDT
●
CDT = C/C++ Development Tooling
–
support various toolchains
–
standard make build
–
source navigation
–
various source knowledge tools
78. Conclusion
●
programming in mruby is fun
●
debugging in mruby is hard
●
making debugger is harder than
that
●
Cool tool helps you and makes less
hard