byebug 9.0.0 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/CONTRIBUTING.md +6 -6
- data/GUIDE.md +4 -4
- data/ext/byebug/breakpoint.c +3 -3
- data/ext/byebug/byebug.h +0 -1
- data/ext/byebug/locker.c +1 -1
- data/ext/byebug/threads.c +2 -2
- data/lib/byebug/remote.rb +14 -15
- 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: 071784fca53d0ea070218f3424abbb336001924d
|
4
|
+
data.tar.gz: 8b6c75eb8356a99d200a43a319b72637074b75ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb2f5b013a5a66b859434a7eaabe5058ae35e833592bec69121ff8838b7750b96f861e9dc4945f7009297093aee7178e546a42fb75dc5058c4153b2fe94bd461
|
7
|
+
data.tar.gz: 0fe21ef4e87202de725f8344f40af58141f533ccb4980c78eb8af644cbb1c57af529b37d70e3addf0b673528991cfb36220120356783964c9d85854f4223dad3
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
|
1
|
+
# CONTRIBUTING
|
2
2
|
|
3
3
|
Please note that this project is released with a [Contributor Code of
|
4
4
|
Conduct](code_of_conduct.md). By participating in this project you agree to
|
5
5
|
abide by its terms.
|
6
6
|
|
7
|
-
|
7
|
+
## Bug Reports
|
8
8
|
|
9
9
|
* Try to reproduce the issue against the latest revision. There might be
|
10
10
|
unrealeased work that fixes your problem!
|
@@ -14,7 +14,7 @@ abide by its terms.
|
|
14
14
|
* Include the behavior you observed along with the behavior you expected,
|
15
15
|
and why you expected it.
|
16
16
|
|
17
|
-
|
17
|
+
## Development dependencies
|
18
18
|
|
19
19
|
* `Byebug` depends on Ruby's TracePoint API provided by `ruby-core`. This is a
|
20
20
|
young API and a lot of bugs have been recently corrected, so make sure you
|
@@ -24,7 +24,7 @@ abide by its terms.
|
|
24
24
|
* Running `bundle install` inside a local clone of `byebug` will get development
|
25
25
|
dependencies installed.
|
26
26
|
|
27
|
-
|
27
|
+
## Running the test suite
|
28
28
|
|
29
29
|
* Make sure you compile the C-extension using `bundle exec rake compile`.
|
30
30
|
Otherwise you won't be able to use `byebug`.
|
@@ -45,7 +45,7 @@ abide by its terms.
|
|
45
45
|
example: `script/minitest_runner.rb Byebug::BreakAtLinesTestCase
|
46
46
|
test_catch_removes_specific_catchpoint`
|
47
47
|
|
48
|
-
|
48
|
+
## Code style
|
49
49
|
|
50
50
|
* Byebug uses [overcommit][] to enforce code style. Install the git hooks using
|
51
51
|
`bundle exec overcommit --install`. They will review your changes before they
|
@@ -53,7 +53,7 @@ abide by its terms.
|
|
53
53
|
|
54
54
|
[overcommit]: https://github.com/brigade/overcommit/
|
55
55
|
|
56
|
-
|
56
|
+
## Byebug as a C-extension
|
57
57
|
|
58
58
|
Byebug is a gem developed as a C-extension. The debugger internal's
|
59
59
|
functionality is implemented in C (the interaction with the TracePoint API).
|
data/GUIDE.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# GUIDE
|
2
|
+
|
3
|
+
## Introduction
|
4
|
+
|
1
5
|
### First Steps
|
2
6
|
|
3
7
|
A handful of commands are enough to get started using `byebug`. The following
|
@@ -610,10 +614,6 @@ already been done when you compile the program (or in Perl when it scans in the
|
|
610
614
|
program). In this section we'll consider some other things that might throw off
|
611
615
|
new users to Ruby who are familiar with other languages and debugging in them.
|
612
616
|
|
613
|
-
* Bouncing Around in Blocks (iterators)
|
614
|
-
* No Parameter Values in a Call Stack
|
615
|
-
* Lines You Can Stop At
|
616
|
-
|
617
617
|
#### Bouncing Around in Blocks (iterators)
|
618
618
|
|
619
619
|
When debugging languages with coroutines like Python and Ruby, a method call may
|
data/ext/byebug/breakpoint.c
CHANGED
@@ -277,7 +277,7 @@ brkpt_initialize(VALUE self, VALUE source, VALUE pos, VALUE expr)
|
|
277
277
|
return Qnil;
|
278
278
|
}
|
279
279
|
|
280
|
-
int
|
280
|
+
static int
|
281
281
|
filename_cmp_impl(VALUE source, char *file)
|
282
282
|
{
|
283
283
|
char *source_ptr, *file_ptr;
|
@@ -309,7 +309,7 @@ filename_cmp_impl(VALUE source, char *file)
|
|
309
309
|
return 1;
|
310
310
|
}
|
311
311
|
|
312
|
-
int
|
312
|
+
static int
|
313
313
|
filename_cmp(VALUE source, char *file)
|
314
314
|
{
|
315
315
|
#ifdef _WIN32
|
@@ -332,7 +332,7 @@ filename_cmp(VALUE source, char *file)
|
|
332
332
|
#endif
|
333
333
|
}
|
334
334
|
|
335
|
-
int
|
335
|
+
static int
|
336
336
|
classname_cmp(VALUE name, VALUE klass)
|
337
337
|
{
|
338
338
|
VALUE mod_name;
|
data/ext/byebug/byebug.h
CHANGED
data/ext/byebug/locker.c
CHANGED
data/ext/byebug/threads.c
CHANGED
@@ -7,7 +7,7 @@ static VALUE cThreadsTable;
|
|
7
7
|
VALUE next_thread = Qnil;
|
8
8
|
|
9
9
|
/* To allow thread syncronization, we must stop threads when debugging */
|
10
|
-
VALUE locker = Qnil;
|
10
|
+
static VALUE locker = Qnil;
|
11
11
|
|
12
12
|
static int
|
13
13
|
t_tbl_mark_keyvalue(st_data_t key, st_data_t value, st_data_t tbl)
|
@@ -97,7 +97,7 @@ is_living_thread(VALUE thread)
|
|
97
97
|
/*
|
98
98
|
* Checks threads table for dead/finished threads.
|
99
99
|
*/
|
100
|
-
void
|
100
|
+
static void
|
101
101
|
cleanup_dead_threads(void)
|
102
102
|
{
|
103
103
|
threads_table_t *t_tbl;
|
data/lib/byebug/remote.rb
CHANGED
@@ -74,27 +74,26 @@ module Byebug
|
|
74
74
|
# Connects to the remote byebug
|
75
75
|
#
|
76
76
|
def start_client(host = 'localhost', port = PORT)
|
77
|
-
|
77
|
+
interface = LocalInterface.new
|
78
78
|
puts 'Connecting to byebug server...'
|
79
79
|
socket = TCPSocket.new(host, port)
|
80
80
|
puts 'Connected.'
|
81
81
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
puts line
|
95
|
-
end
|
82
|
+
while (line = socket.gets)
|
83
|
+
case line
|
84
|
+
when /^PROMPT (.*)$/
|
85
|
+
input = interface.read_command(Regexp.last_match[1])
|
86
|
+
break unless input
|
87
|
+
socket.puts input
|
88
|
+
when /^CONFIRM (.*)$/
|
89
|
+
input = interface.readline(Regexp.last_match[1])
|
90
|
+
break unless input
|
91
|
+
socket.puts input
|
92
|
+
else
|
93
|
+
puts line
|
96
94
|
end
|
97
95
|
end
|
96
|
+
|
98
97
|
socket.close
|
99
98
|
end
|
100
99
|
|
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: 9.0.
|
4
|
+
version: 9.0.1
|
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: 2016-05-
|
13
|
+
date: 2016-05-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|