Skip to content

Commit 822c3d0

Browse files
committed
New upstream version 3.3.6
1 parent ca22265 commit 822c3d0

File tree

410 files changed

+7612
-4002
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

410 files changed

+7612
-4002
lines changed

.bundle/bin/rdbg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!ruby
2-
load File.realpath("../gems/debug-1.9.1/exe/rdbg", __dir__)
2+
load File.realpath("../gems/debug-1.9.2/exe/rdbg", __dir__)

.bundle/gems/debug-1.9.1/.bundled.debug-1.9.1.gemspec renamed to .bundle/gems/debug-1.9.2/.bundled.debug-1.9.2.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# -*- encoding: utf-8 -*-
2-
# stub: debug 1.9.1 ruby lib
2+
# stub: debug 1.9.2 ruby lib
33
# stub: ext/debug/extconf.rb
44

55
Gem::Specification.new do |s|
66
s.name = "debug".freeze
7-
s.version = "1.9.1"
7+
s.version = "1.9.2"
88

99
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
1010
s.metadata = { "homepage_uri" => "https://github.com/ruby/debug", "source_code_uri" => "https://github.com/ruby/debug" } if s.respond_to? :metadata=
1111
s.require_paths = ["lib".freeze]
1212
s.authors = ["Koichi Sasada".freeze]
1313
s.bindir = "exe".freeze
14-
s.date = "2023-12-22"
14+
s.date = "2024-03-29"
1515
s.description = "Debugging functionality for Ruby. This is completely rewritten debug.rb which was contained by the ancient Ruby versions.".freeze
1616
s.email = ["[email protected]".freeze]
1717
s.executables = ["rdbg".freeze]
File renamed without changes.

.bundle/gems/debug-1.9.1/Gemfile renamed to .bundle/gems/debug-1.9.2/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ gem "rake-compiler"
77
gem "test-unit", "~> 3.0"
88
gem "test-unit-rr"
99
gem "json-schema"
10+
gem "test-unit-launchable"

.bundle/gems/debug-1.9.1/README.md renamed to .bundle/gems/debug-1.9.2/README.md

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ New debug.rb has several advantages:
1313
* TCP/IP
1414
* Integration with rich debugger frontends
1515

16-
Frontend | [Console](https://github.com/ruby/debug#invoke-as-a-remote-debuggee) | [VSCode](https://github.com/ruby/debug#vscode-integration) | [Chrome DevTool](#chrome-devtool-integration) |
17-
---|---|---|---|
18-
Connection | UDS, TCP/IP | UDS, TCP/IP | TCP/IP |
19-
Requirement | No | [vscode-rdbg](https://marketplace.visualstudio.com/items?itemName=KoichiSasada.vscode-rdbg) | Chrome |
16+
| Frontend | [Console](https://github.com/ruby/debug#invoke-as-a-remote-debuggee) | [VSCode](https://github.com/ruby/debug#vscode-integration) | [Chrome DevTool](#chrome-devtool-integration) |
17+
| ----------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------- |
18+
| Connection | UDS, TCP/IP | UDS, TCP/IP | TCP/IP |
19+
| Requirement | No | [vscode-rdbg](https://marketplace.visualstudio.com/items?itemName=KoichiSasada.vscode-rdbg) | Chrome |
2020

2121
* Extensible: application can introduce debugging support in several ways:
2222
* By `rdbg` command
@@ -289,10 +289,10 @@ You can run your application as a remote debuggee, and the remote debugger conso
289289

290290
There are multiple ways to run your program as a debuggee:
291291

292-
Stop at program start | [`rdbg` option](https://github.com/ruby/debug#rdbg---open-or-rdbg--o-for-short) | [require](https://github.com/ruby/debug#require-debugopen-in-a-program) | [debugger API](https://github.com/ruby/debug#start-by-method)
293-
---|---|---|---|
294-
Yes | `rdbg --open` | `require "debug/open"` | `DEBUGGER__.open`
295-
No | `rdbg --open --nonstop` | `require "debug/open_nonstop"` | `DEBUGGER__.open(nonstop: true)`
292+
| Stop at program start | [`rdbg` option](https://github.com/ruby/debug#rdbg---open-or-rdbg--o-for-short) | [require](https://github.com/ruby/debug#require-debugopen-in-a-program) | [debugger API](https://github.com/ruby/debug#start-by-method) |
293+
| --------------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------- |
294+
| Yes | `rdbg --open` | `require "debug/open"` | `DEBUGGER__.open` |
295+
| No | `rdbg --open --nonstop` | `require "debug/open_nonstop"` | `DEBUGGER__.open(nonstop: true)` |
296296

297297
#### `rdbg --open` (or `rdbg -O` for short)
298298

@@ -713,7 +713,7 @@ The `<...>` notation means the argument.
713713
* `eval <expr>`
714714
* Evaluate `<expr>` on the current frame.
715715
* `irb`
716-
* Invoke `irb` on the current frame.
716+
* Activate and switch to `irb:rdbg` console
717717

718718
### Trace
719719

@@ -784,6 +784,30 @@ The `<...>` notation means the argument.
784784
* Show help for the given command.
785785

786786

787+
### Using IRB as the Debug Console
788+
789+
Starting from version `v1.9`, you can now use IRB as the debug console. This integration brings additional features such as:
790+
791+
* Autocompletion
792+
* Support for multi-line input
793+
* Access to commands not available in `debug`, like `show_source` or `show_doc`
794+
* [Configurable command aliases](https://docs.ruby-lang.org/en/master/IRB.html#module-IRB-label-Command+Aliases)
795+
796+
To switch to the IRB console, simply use the `irb` command in the debug console.
797+
798+
Once activated, you'll notice the prompt changes to:
799+
800+
```txt
801+
irb:rdbg(main):001>
802+
```
803+
804+
If you want to make IRB the default console for all sessions, configure the `irb_console` setting by either:
805+
806+
* Setting the `RUBY_DEBUG_IRB_CONSOLE=true` environment variable
807+
* Or adding `config set irb_console 1` to your `~/.rdbgrc`
808+
809+
To disable the IRB console in the current session, execute `config set irb_console 0` in the console.
810+
787811
## Debugger API
788812

789813
### Start debugging
File renamed without changes.
File renamed without changes.

.bundle/gems/debug-1.9.1/debug-1.9.1.gemspec renamed to .bundle/gems/debug-1.9.2/debug-1.9.2.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# -*- encoding: utf-8 -*-
2-
# stub: debug 1.9.1 ruby lib
2+
# stub: debug 1.9.2 ruby lib
33
# stub: ext/debug/extconf.rb
44

55
Gem::Specification.new do |s|
66
s.name = "debug".freeze
7-
s.version = "1.9.1"
7+
s.version = "1.9.2"
88

99
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
1010
s.metadata = { "homepage_uri" => "https://github.com/ruby/debug", "source_code_uri" => "https://github.com/ruby/debug" } if s.respond_to? :metadata=
1111
s.require_paths = ["lib".freeze]
1212
s.authors = ["Koichi Sasada".freeze]
1313
s.bindir = "exe".freeze
14-
s.date = "2023-12-22"
14+
s.date = "2024-03-29"
1515
s.description = "Debugging functionality for Ruby. This is completely rewritten debug.rb which was contained by the ancient Ruby versions.".freeze
1616
s.email = ["[email protected]".freeze]
1717
s.executables = ["rdbg".freeze]

0 commit comments

Comments
 (0)