debugger-pry 0.1.0 → 0.1.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.
- data/README.md +34 -1
- data/debugger-pry.gemspec +16 -0
- data/examples/foo.rb +0 -3
- metadata +2 -1
data/README.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
|
1
|
+
# debugger-pry
|
2
|
+
|
3
|
+
This gem adds a `pry` command to the [debugger](https://github.com/cldwalker/debugger) gem enabling you to bring up
|
4
|
+
a pry console during your session. It is similar to debugger's built-in `irb` command.
|
2
5
|
|
3
6
|
To see it in action, run `ruby examples/foo.rb` and type "pry" at the debug prompt.
|
4
7
|
|
@@ -8,6 +11,36 @@ To use it in a project, add this to your Gemfile:
|
|
8
11
|
|
9
12
|
For more information on pry, read [this article](http://banisterfiend.wordpress.com/2011/01/27/turning-irb-on-its-head-with-pry/).
|
10
13
|
|
14
|
+
Example
|
15
|
+
-------
|
16
|
+
|
17
|
+
```
|
18
|
+
(rdb:1) help
|
19
|
+
ruby-debug help v1.1.3
|
20
|
+
Type 'help <command-name>' for help on a specific command
|
21
|
+
|
22
|
+
Available commands:
|
23
|
+
backtrace delete enable help list pry restart source undisplay
|
24
|
+
break disable eval info method ps save step up
|
25
|
+
catch display exit irb next putl set thread var
|
26
|
+
condition down finish jump p quit show tmate where
|
27
|
+
continue edit frame kill pp reload skip trace
|
28
|
+
|
29
|
+
(rdb:1) pry
|
30
|
+
|
31
|
+
Frame number: 0/11
|
32
|
+
|
33
|
+
From: foo.rb @ line 14 :
|
34
|
+
|
35
|
+
9: end
|
36
|
+
10: end
|
37
|
+
11:
|
38
|
+
12: foo = Foo.new(5)
|
39
|
+
13: debugger
|
40
|
+
=> 14: foo.bar += 10
|
41
|
+
|
42
|
+
[1] (pry) main: 0>
|
43
|
+
```
|
11
44
|
Credits
|
12
45
|
-------
|
13
46
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = "debugger-pry"
|
5
|
+
s.version = "0.1.1"
|
6
|
+
s.platform = Gem::Platform::RUBY
|
7
|
+
s.authors = ["Andrew O'Brien", "John Mair"]
|
8
|
+
s.email = ["obrien.andrew@gmail.com", "jrmair@gmail.com"]
|
9
|
+
s.homepage = "http://github.com/pry/debugger-pry"
|
10
|
+
s.summary = "Adds a 'pry' command to debugger"
|
11
|
+
s.description = "This gem adds a 'pry' command to invoke Pry in the current context."
|
12
|
+
s.files = `git ls-files`.split("\n")
|
13
|
+
|
14
|
+
s.add_dependency("pry", ">= 0.9.9")
|
15
|
+
s.add_dependency("debugger", "~> 1")
|
16
|
+
end
|
data/examples/foo.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debugger-pry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- Gemfile
|
57
57
|
- LICENSE
|
58
58
|
- README.md
|
59
|
+
- debugger-pry.gemspec
|
59
60
|
- examples/foo.rb
|
60
61
|
- lib/debugger/pry.rb
|
61
62
|
homepage: http://github.com/pry/debugger-pry
|