byebug 4.0.3 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -3
- data/ext/byebug/byebug.c +6 -12
- data/lib/byebug/attacher.rb +6 -4
- data/lib/byebug/commands/tracevar.rb +2 -1
- data/lib/byebug/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d5196fdd3dc5f4325d6a7dc03edc403c3f54adc
|
4
|
+
data.tar.gz: b99153ca69aa352475c74692bd4cf0092b7fafa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aab4f3f7ed3f5da8c08b024b8b616fbbb67020cf652e7d9474b83fef9b0abeacee16a19016fd47fb3c4117071a4b1e9d6b0f491c3862626ea58351973bc06912
|
7
|
+
data.tar.gz: 760d9cd65c9b2a7afad5c7f47d079dc84a1e3b0d0af754099998513a3d6a2ff835fcc661bdab3d0d8100cb0884d0e8d03a902d73763266e1761c7473fe733e09
|
data/CHANGELOG.md
CHANGED
@@ -1,18 +1,22 @@
|
|
1
|
+
## 4.0.4 - 2015-03-27
|
2
|
+
### Fixed
|
3
|
+
* #127
|
4
|
+
|
1
5
|
## 4.0.3 - 2015-03-19
|
2
6
|
### Fixed
|
3
7
|
* Unused variable warning in context.c
|
4
8
|
|
5
|
-
## 4.0.2 -
|
9
|
+
## 4.0.2 - 2015-03-16
|
6
10
|
### Fixed
|
7
11
|
* Removed `rb-readline` as a dependency and show a help message whenever
|
8
12
|
requiring readline fails instead (#118)
|
9
13
|
|
10
|
-
## 4.0.1 -
|
14
|
+
## 4.0.1 - 2015-03-13
|
11
15
|
### Fixed
|
12
16
|
* .yml files needed for printers support were missing from the release... :S
|
13
17
|
* Add `rb-readline` as a dependency (#118)
|
14
18
|
|
15
|
-
## 4.0.0 -
|
19
|
+
## 4.0.0 - 2015-03-13
|
16
20
|
### Added
|
17
21
|
- `untracevar` command that stops tracing a global variable.
|
18
22
|
- Window CI build through AppVeyor.
|
data/ext/byebug/byebug.c
CHANGED
@@ -603,22 +603,16 @@ Stop(VALUE self)
|
|
603
603
|
static VALUE
|
604
604
|
Start(VALUE self)
|
605
605
|
{
|
606
|
-
|
606
|
+
if (IS_STARTED)
|
607
|
+
return Qfalse;
|
607
608
|
|
608
|
-
|
609
|
+
catchpoints = rb_hash_new();
|
609
610
|
|
610
|
-
|
611
|
-
result = Qfalse;
|
612
|
-
else
|
613
|
-
{
|
614
|
-
catchpoints = rb_hash_new();
|
615
|
-
threads = create_threads_table();
|
611
|
+
threads = create_threads_table();
|
616
612
|
|
617
|
-
|
618
|
-
result = Qtrue;
|
619
|
-
}
|
613
|
+
register_tracepoints(self);
|
620
614
|
|
621
|
-
return
|
615
|
+
return Qtrue;
|
622
616
|
}
|
623
617
|
|
624
618
|
/*
|
data/lib/byebug/attacher.rb
CHANGED
@@ -6,13 +6,15 @@ module Byebug
|
|
6
6
|
# Enters byebug right before (or right after if _before_ is false) return
|
7
7
|
# events occur. Before entering byebug the init script is read.
|
8
8
|
#
|
9
|
-
def self.attach
|
9
|
+
def self.attach
|
10
|
+
return errmsg('Byebug already started. Ignoring `byebug` call.') if started?
|
11
|
+
|
10
12
|
setup_cmd_line_args
|
11
13
|
|
12
14
|
start
|
13
15
|
run_init_script
|
14
16
|
|
15
|
-
current_context.step_out(
|
17
|
+
current_context.step_out(2, true)
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
@@ -22,8 +24,8 @@ end
|
|
22
24
|
# Dropping a `byebug` call anywhere in your code, you get a debug prompt.
|
23
25
|
#
|
24
26
|
module Kernel
|
25
|
-
def byebug
|
26
|
-
Byebug.attach
|
27
|
+
def byebug
|
28
|
+
Byebug.attach
|
27
29
|
end
|
28
30
|
|
29
31
|
alias_method :debugger, :byebug
|
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: 4.0.
|
4
|
+
version: 4.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rodriguez
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-03-
|
13
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: columnize
|