byebug 11.0.1 → 11.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/CONTRIBUTING.md +2 -2
  4. data/README.md +16 -9
  5. data/exe/byebug +1 -1
  6. data/ext/byebug/byebug.c +4 -9
  7. data/ext/byebug/byebug.h +4 -2
  8. data/ext/byebug/context.c +15 -2
  9. data/lib/byebug.rb +1 -1
  10. data/lib/byebug/attacher.rb +2 -2
  11. data/lib/byebug/command.rb +2 -2
  12. data/lib/byebug/command_list.rb +1 -1
  13. data/lib/byebug/commands.rb +38 -38
  14. data/lib/byebug/commands/break.rb +5 -5
  15. data/lib/byebug/commands/catch.rb +2 -2
  16. data/lib/byebug/commands/condition.rb +2 -2
  17. data/lib/byebug/commands/continue.rb +2 -2
  18. data/lib/byebug/commands/debug.rb +2 -2
  19. data/lib/byebug/commands/delete.rb +2 -2
  20. data/lib/byebug/commands/disable.rb +3 -3
  21. data/lib/byebug/commands/disable/breakpoints.rb +1 -1
  22. data/lib/byebug/commands/disable/display.rb +1 -1
  23. data/lib/byebug/commands/display.rb +2 -2
  24. data/lib/byebug/commands/down.rb +3 -3
  25. data/lib/byebug/commands/edit.rb +1 -1
  26. data/lib/byebug/commands/enable.rb +3 -3
  27. data/lib/byebug/commands/enable/breakpoints.rb +1 -1
  28. data/lib/byebug/commands/enable/display.rb +1 -1
  29. data/lib/byebug/commands/finish.rb +2 -2
  30. data/lib/byebug/commands/frame.rb +3 -3
  31. data/lib/byebug/commands/help.rb +2 -2
  32. data/lib/byebug/commands/history.rb +2 -2
  33. data/lib/byebug/commands/info.rb +6 -6
  34. data/lib/byebug/commands/info/file.rb +1 -1
  35. data/lib/byebug/commands/interrupt.rb +1 -1
  36. data/lib/byebug/commands/irb.rb +1 -1
  37. data/lib/byebug/commands/kill.rb +1 -1
  38. data/lib/byebug/commands/list.rb +4 -4
  39. data/lib/byebug/commands/method.rb +2 -2
  40. data/lib/byebug/commands/next.rb +2 -2
  41. data/lib/byebug/commands/pry.rb +2 -2
  42. data/lib/byebug/commands/quit.rb +1 -1
  43. data/lib/byebug/commands/restart.rb +3 -3
  44. data/lib/byebug/commands/save.rb +1 -1
  45. data/lib/byebug/commands/set.rb +3 -3
  46. data/lib/byebug/commands/show.rb +1 -1
  47. data/lib/byebug/commands/skip.rb +2 -2
  48. data/lib/byebug/commands/source.rb +1 -1
  49. data/lib/byebug/commands/step.rb +2 -2
  50. data/lib/byebug/commands/thread.rb +6 -6
  51. data/lib/byebug/commands/thread/current.rb +1 -1
  52. data/lib/byebug/commands/thread/list.rb +1 -1
  53. data/lib/byebug/commands/thread/resume.rb +1 -1
  54. data/lib/byebug/commands/thread/stop.rb +1 -1
  55. data/lib/byebug/commands/thread/switch.rb +1 -1
  56. data/lib/byebug/commands/tracevar.rb +1 -1
  57. data/lib/byebug/commands/undisplay.rb +2 -2
  58. data/lib/byebug/commands/untracevar.rb +1 -1
  59. data/lib/byebug/commands/up.rb +3 -3
  60. data/lib/byebug/commands/var.rb +8 -8
  61. data/lib/byebug/commands/var/all.rb +1 -1
  62. data/lib/byebug/commands/var/args.rb +1 -1
  63. data/lib/byebug/commands/var/const.rb +1 -1
  64. data/lib/byebug/commands/var/instance.rb +1 -1
  65. data/lib/byebug/commands/var/local.rb +1 -1
  66. data/lib/byebug/commands/where.rb +2 -2
  67. data/lib/byebug/context.rb +4 -4
  68. data/lib/byebug/core.rb +10 -10
  69. data/lib/byebug/frame.rb +2 -2
  70. data/lib/byebug/helpers/parse.rb +1 -1
  71. data/lib/byebug/helpers/toggle.rb +1 -1
  72. data/lib/byebug/helpers/var.rb +1 -1
  73. data/lib/byebug/history.rb +1 -1
  74. data/lib/byebug/interface.rb +6 -6
  75. data/lib/byebug/interfaces/remote_interface.rb +1 -1
  76. data/lib/byebug/interfaces/script_interface.rb +1 -1
  77. data/lib/byebug/printers/plain.rb +1 -1
  78. data/lib/byebug/processors/command_processor.rb +2 -2
  79. data/lib/byebug/processors/control_processor.rb +1 -1
  80. data/lib/byebug/processors/post_mortem_processor.rb +1 -1
  81. data/lib/byebug/processors/script_processor.rb +1 -1
  82. data/lib/byebug/remote.rb +3 -3
  83. data/lib/byebug/runner.rb +7 -7
  84. data/lib/byebug/setting.rb +2 -2
  85. data/lib/byebug/settings/autoirb.rb +2 -2
  86. data/lib/byebug/settings/autolist.rb +2 -2
  87. data/lib/byebug/settings/autopry.rb +2 -2
  88. data/lib/byebug/settings/autosave.rb +1 -1
  89. data/lib/byebug/settings/basename.rb +1 -1
  90. data/lib/byebug/settings/callstyle.rb +1 -1
  91. data/lib/byebug/settings/fullpath.rb +1 -1
  92. data/lib/byebug/settings/histfile.rb +1 -1
  93. data/lib/byebug/settings/histsize.rb +1 -1
  94. data/lib/byebug/settings/linetrace.rb +1 -1
  95. data/lib/byebug/settings/listsize.rb +1 -1
  96. data/lib/byebug/settings/post_mortem.rb +1 -1
  97. data/lib/byebug/settings/savefile.rb +1 -1
  98. data/lib/byebug/settings/stack_on_error.rb +1 -1
  99. data/lib/byebug/settings/width.rb +1 -1
  100. data/lib/byebug/source_file_formatter.rb +2 -2
  101. data/lib/byebug/subcommands.rb +2 -2
  102. data/lib/byebug/version.rb +1 -1
  103. metadata +4 -4
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/helpers/eval"
3
+ require_relative "../command"
4
+ require_relative "../helpers/eval"
5
5
 
6
6
  module Byebug
7
7
  #
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "pathname"
4
- require "byebug/command"
5
- require "byebug/helpers/frame"
6
- require "byebug/helpers/parse"
4
+ require_relative "../command"
5
+ require_relative "../helpers/frame"
6
+ require_relative "../helpers/parse"
7
7
 
8
8
  module Byebug
9
9
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
3
+ require_relative "../command"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/subcommands"
3
+ require_relative "../subcommands"
4
4
 
5
- require "byebug/commands/enable/breakpoints"
6
- require "byebug/commands/enable/display"
5
+ require_relative "../commands/enable/breakpoints"
6
+ require_relative "../commands/enable/display"
7
7
 
8
8
  module Byebug
9
9
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/helpers/toggle"
3
+ require_relative "../../helpers/toggle"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/helpers/toggle"
3
+ require_relative "../../helpers/toggle"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/helpers/parse"
3
+ require_relative "../command"
4
+ require_relative "../helpers/parse"
5
5
 
6
6
  module Byebug
7
7
  #
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "pathname"
4
- require "byebug/command"
5
- require "byebug/helpers/frame"
6
- require "byebug/helpers/parse"
4
+ require_relative "../command"
5
+ require_relative "../helpers/frame"
6
+ require_relative "../helpers/parse"
7
7
 
8
8
  module Byebug
9
9
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/errors"
3
+ require_relative "../command"
4
+ require_relative "../errors"
5
5
 
6
6
  module Byebug
7
7
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/helpers/parse"
3
+ require_relative "../command"
4
+ require_relative "../helpers/parse"
5
5
 
6
6
  module Byebug
7
7
  #
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/subcommands"
3
+ require_relative "../subcommands"
4
4
 
5
- require "byebug/commands/info/breakpoints"
6
- require "byebug/commands/info/display"
7
- require "byebug/commands/info/file"
8
- require "byebug/commands/info/line"
9
- require "byebug/commands/info/program"
5
+ require_relative "../commands/info/breakpoints"
6
+ require_relative "../commands/info/display"
7
+ require_relative "../commands/info/file"
8
+ require_relative "../commands/info/line"
9
+ require_relative "../commands/info/program"
10
10
 
11
11
  module Byebug
12
12
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/helpers/file"
3
+ require_relative "../../helpers/file"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
3
+ require_relative "../command"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
3
+ require_relative "../command"
4
4
  require "irb"
5
5
  require "English"
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
3
+ require_relative "../command"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/source_file_formatter"
5
- require "byebug/helpers/file"
6
- require "byebug/helpers/parse"
3
+ require_relative "../command"
4
+ require_relative "../source_file_formatter"
5
+ require_relative "../helpers/file"
6
+ require_relative "../helpers/parse"
7
7
 
8
8
  module Byebug
9
9
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/helpers/eval"
3
+ require_relative "../command"
4
+ require_relative "../helpers/eval"
5
5
 
6
6
  module Byebug
7
7
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/helpers/parse"
3
+ require_relative "../command"
4
+ require_relative "../helpers/parse"
5
5
 
6
6
  module Byebug
7
7
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/helpers/eval"
3
+ require_relative "../command"
4
+ require_relative "../helpers/eval"
5
5
 
6
6
  module Byebug
7
7
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
3
+ require_relative "../command"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/helpers/bin"
5
- require "byebug/helpers/path"
3
+ require_relative "../command"
4
+ require_relative "../helpers/bin"
5
+ require_relative "../helpers/path"
6
6
  require "shellwords"
7
7
  require "English"
8
8
  require "rbconfig"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
3
+ require_relative "../command"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/helpers/parse"
3
+ require_relative "../command"
4
+ require_relative "../helpers/parse"
5
5
 
6
6
  module Byebug
7
7
  #
@@ -50,7 +50,7 @@ module Byebug
50
50
  if !setting.boolean? && value.nil?
51
51
  err = pr("set.errors.must_specify_value", key: key)
52
52
  elsif setting.boolean?
53
- value, err = get_onoff(value, key =~ /^no/ ? false : true)
53
+ value, err = get_onoff(value, /^no/.match?(key) ? false : true)
54
54
  elsif setting.integer?
55
55
  value, err = get_int(value, setting.to_sym, 1)
56
56
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
3
+ require_relative "../command"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/helpers/parse"
3
+ require_relative "../command"
4
+ require_relative "../helpers/parse"
5
5
 
6
6
  module Byebug
7
7
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
3
+ require_relative "../command"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/helpers/parse"
3
+ require_relative "../command"
4
+ require_relative "../helpers/parse"
5
5
 
6
6
  module Byebug
7
7
  #
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/subcommands"
3
+ require_relative "../subcommands"
4
4
 
5
- require "byebug/commands/thread/current"
6
- require "byebug/commands/thread/list"
7
- require "byebug/commands/thread/resume"
8
- require "byebug/commands/thread/stop"
9
- require "byebug/commands/thread/switch"
5
+ require_relative "../commands/thread/current"
6
+ require_relative "../commands/thread/list"
7
+ require_relative "../commands/thread/resume"
8
+ require_relative "../commands/thread/stop"
9
+ require_relative "../commands/thread/switch"
10
10
 
11
11
  module Byebug
12
12
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/helpers/thread"
3
+ require_relative "../../helpers/thread"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/helpers/thread"
3
+ require_relative "../../helpers/thread"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/helpers/thread"
3
+ require_relative "../../helpers/thread"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/helpers/thread"
3
+ require_relative "../../helpers/thread"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/helpers/thread"
3
+ require_relative "../../helpers/thread"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
3
+ require_relative "../command"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
4
- require "byebug/helpers/parse"
3
+ require_relative "../command"
4
+ require_relative "../helpers/parse"
5
5
 
6
6
  module Byebug
7
7
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/command"
3
+ require_relative "../command"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "pathname"
4
- require "byebug/command"
5
- require "byebug/helpers/frame"
6
- require "byebug/helpers/parse"
4
+ require_relative "../command"
5
+ require_relative "../helpers/frame"
6
+ require_relative "../helpers/parse"
7
7
 
8
8
  module Byebug
9
9
  #
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/subcommands"
4
-
5
- require "byebug/commands/var/all"
6
- require "byebug/commands/var/args"
7
- require "byebug/commands/var/const"
8
- require "byebug/commands/var/instance"
9
- require "byebug/commands/var/local"
10
- require "byebug/commands/var/global"
3
+ require_relative "../subcommands"
4
+
5
+ require_relative "var/all"
6
+ require_relative "var/args"
7
+ require_relative "var/const"
8
+ require_relative "var/instance"
9
+ require_relative "var/local"
10
+ require_relative "var/global"
11
11
 
12
12
  module Byebug
13
13
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/helpers/var"
3
+ require_relative "../../helpers/var"
4
4
 
5
5
  module Byebug
6
6
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug/helpers/var"
3
+ require_relative "../../helpers/var"
4
4
 
5
5
  module Byebug
6
6
  #