干货

rails debugger 几个命令

2014-05-03  本文已影响161人  AQ王浩
Info

显示相关信息

Set

设定ruby-debug的环境,Boolean变量可以设定为on off或者1 0 设定变量可以用show显示

Thread

用于线程操作

th[read] l[ist] # 列出所有的线程
th[read] stop <nnn> # 停止指定线程
th[read] resume <nnn> # 恢复指定线程
th[read] [sw[itch]] <nnn> # 切换执行环境到指定线程
th[read] [cur[rent]] # 显示当前线程

Trace

tr[ace] (on|off) set trace mode of current thread
tr[ace] (on|off) all set trace mode of all threads

上一篇 下一篇

猜你喜欢

热点阅读