зеркало из https://github.com/github/ruby.git
Tweak description of TracePoint :line event
"code" here is too ambiguous. TracePoint events only occur if there is a new statement or expression on that line, not if the line is a continuation of a previous statement or expression and there is no new statement or expression on the line. For example: ``` [ foo, # start of expression, line event bar # continuation of expression, no line event ] [ foo, # start of expression, line event (bar) # new expression, line event ] foo( # start of expression, line event bar # continuation of expression, no line event ) foo( # start of expression, line event (bar) # new expression, line event ) ``` Fixes [Bug #15634]
This commit is contained in:
Родитель
53a094ea45
Коммит
72a4e1d3bb
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
# To filter what is traced, you can pass any of the following as +events+:
|
||||
#
|
||||
# +:line+:: execute code on a new line
|
||||
# +:line+:: execute an expression or statement on a new line
|
||||
# +:class+:: start a class or module definition
|
||||
# +:end+:: finish a class or module definition
|
||||
# +:call+:: call a Ruby method
|
||||
|
|
Загрузка…
Ссылка в новой задаче