byebug 11.0.0 → 11.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/byebug/attacher.rb +3 -3
- data/lib/byebug/commands/continue.rb +1 -0
- data/lib/byebug/commands/skip.rb +14 -0
- data/lib/byebug/core.rb +1 -0
- data/lib/byebug/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0977c7550ab065319699ac26a4bbf84eda25ff1da43e1c2ab2d14ef3be67f8f
|
4
|
+
data.tar.gz: d89b05376496476d549165b1f885599412c9957cf9fe5ee75c069e910879b63f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15904b4b6f3c8734933a26fc55f79d3f13fe97061634dfed642e0638ae2ebbcdbff40ab1c9a85f9ab285e008c5a9b8bfe05d895281e5d51648981a00e463accf
|
7
|
+
data.tar.gz: 4ba5fb7e27009f4eab22799fe22bd0c998a135cc0075c35471ece93e871e10ef70d4ba901f32093c4c4e87a423d9d3da5cfefeb1f661830ac95e6867cc1d57eb
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
## [Unreleased]
|
4
4
|
|
5
|
+
## [11.0.1] - 2019-03-18
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
* [#546](https://github.com/deivid-rodriguez/byebug/pull/546): `continue!` to ignore further `byebug` calls.
|
10
|
+
* [#545](https://github.com/deivid-rodriguez/byebug/pull/545): `skip` autolisting code for intermediate skipped breakpoints.
|
11
|
+
|
5
12
|
## [11.0.0] - 2019-02-15
|
6
13
|
|
7
14
|
### Added
|
@@ -782,6 +789,7 @@
|
|
782
789
|
* Initial release.
|
783
790
|
|
784
791
|
[Unreleased]: https://github.com/deivid-rodriguez/byebug/compare/v10.0.2...HEAD
|
792
|
+
[11.0.1]: https://github.com/deivid-rodriguez/byebug/compare/v11.0.0...v11.0.1
|
785
793
|
[11.0.0]: https://github.com/deivid-rodriguez/byebug/compare/v10.0.2...v11.0.0
|
786
794
|
[10.0.2]: https://github.com/deivid-rodriguez/byebug/compare/v10.0.1...v10.0.2
|
787
795
|
[10.0.1]: https://github.com/deivid-rodriguez/byebug/compare/v10.0.0...v10.0.1
|
data/lib/byebug/attacher.rb
CHANGED
@@ -8,8 +8,6 @@ module Byebug
|
|
8
8
|
# Starts byebug, and stops at the first line of user's code.
|
9
9
|
#
|
10
10
|
def self.attach
|
11
|
-
require "byebug/core"
|
12
|
-
|
13
11
|
unless started?
|
14
12
|
self.mode = :attached
|
15
13
|
|
@@ -35,7 +33,9 @@ end
|
|
35
33
|
#
|
36
34
|
module Kernel
|
37
35
|
def byebug
|
38
|
-
|
36
|
+
require "byebug/core"
|
37
|
+
|
38
|
+
Byebug.attach unless Byebug.mode == :off
|
39
39
|
end
|
40
40
|
|
41
41
|
def remote_byebug(host = "localhost", port = nil)
|
data/lib/byebug/commands/skip.rb
CHANGED
@@ -13,6 +13,7 @@ module Byebug
|
|
13
13
|
|
14
14
|
class << self
|
15
15
|
attr_writer :file_line, :file_path
|
16
|
+
attr_reader :previous_autolist
|
16
17
|
|
17
18
|
def file_line
|
18
19
|
@file_line ||= 0
|
@@ -21,6 +22,16 @@ module Byebug
|
|
21
22
|
def file_path
|
22
23
|
@file_path ||= ""
|
23
24
|
end
|
25
|
+
|
26
|
+
def setup_autolist(value)
|
27
|
+
@previous_autolist = ListCommand.always_run
|
28
|
+
ListCommand.always_run = value
|
29
|
+
end
|
30
|
+
|
31
|
+
def restore_autolist
|
32
|
+
ListCommand.always_run = @previous_autolist
|
33
|
+
@previous_autolist = nil
|
34
|
+
end
|
24
35
|
end
|
25
36
|
|
26
37
|
def self.regexp
|
@@ -41,6 +52,7 @@ module Byebug
|
|
41
52
|
|
42
53
|
def initialize_attributes
|
43
54
|
self.class.always_run = 2
|
55
|
+
self.class.setup_autolist(0)
|
44
56
|
self.class.file_path = frame.file
|
45
57
|
self.class.file_line = frame.line
|
46
58
|
end
|
@@ -51,6 +63,8 @@ module Byebug
|
|
51
63
|
|
52
64
|
def reset_attributes
|
53
65
|
self.class.always_run = 0
|
66
|
+
ListCommand.new(processor).execute if self.class.previous_autolist == 1
|
67
|
+
self.class.restore_autolist
|
54
68
|
end
|
55
69
|
|
56
70
|
def auto_run
|
data/lib/byebug/core.rb
CHANGED
data/lib/byebug/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: byebug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.0.
|
4
|
+
version: 11.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rodriguez
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-
|
13
|
+
date: 2019-03-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
- !ruby/object:Gem::Version
|
193
193
|
version: '0'
|
194
194
|
requirements: []
|
195
|
-
rubygems_version: 3.0.
|
195
|
+
rubygems_version: 3.0.3
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: Ruby fast debugger - base + CLI
|