Skip to content

Commit

Permalink
Merge pull request #264 from k0kubun/dont-stop-byebug-on-linetrace
Browse files Browse the repository at this point in the history
Don't stop byebug with linetrace enabled
  • Loading branch information
David Rodríguez committed May 14, 2016
2 parents 3b7099f + f30bb58 commit 57fa05e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/byebug/byebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,9 @@ Stoppable(VALUE self)
if (post_mortem == Qtrue)
return Qfalse;

if (RTEST(tracing))
return Qfalse;

context = Current_context(self);
if (!NIL_P(context))
{
Expand Down
9 changes: 9 additions & 0 deletions test/commands/continue_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,14 @@ def test_shows_error_if_specified_line_is_not_valid

check_error_includes 'Line 100 is not a valid stopping point in file'
end

def test_tracing_after_set_linetrace_and_continue
with_setting :linetrace, false do
enter 'set linetrace', 'cont'
debug_code(program)

check_output_includes "Tracing: #{example_path}:14 c = b + 5"
end
end
end
end

0 comments on commit 57fa05e

Please sign in to comment.