You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ d => 4
138
138
[1, 2, 3, 4]
139
139
```
140
140
141
-
### Invoke the program from the debugger as a traditional debuggers
141
+
### Invoke the program from the debugger as a traditional debugger
142
142
143
143
If you don't want to modify the source code, you can set breakpoints with a debug command `break` (`b` for short).
144
144
Using `rdbg` command (or `bundle exec rdbg`) to launch the program without any modifications, you can run the program with the debugger.
@@ -253,7 +253,7 @@ Examples:
253
253
*`rdbg -c -- bundle exec rake test`
254
254
*`rdbg -c -- ruby target.rb` is same as `rdbg target.rb`
255
255
256
-
NOTE: `--` is needed to separate the command line options for `rdbg`and invoking command. For example, `rdbg -c rake -T` is recognized like `rdbg -c -T -- rake`. It should be `rdbg -c -- rake -T`.
256
+
NOTE: `--` is needed to separate the command line options for `rdbg`from the invoked command. For example, `rdbg -c rake -T` is recognized like `rdbg -c -T -- rake`. It should be `rdbg -c -- rake -T`.
257
257
258
258
NOTE: If you want to use bundler (`bundle` command), you need to write `gem debug` line in your `Gemfile`.
You can attach with external debugger frontend with VSCode and Chrome.
361
+
You can start a debugging session for an external debugger frontend using:
362
362
363
-
```
363
+
```shell
364
364
$ rdbg --open=[frontend] target.rb
365
365
```
366
366
367
-
will open a debug port and `[frontend]` can attach to the port.
367
+
The currently available frontends are:
368
368
369
-
Also `open` command allows opening the debug port.
369
+
| Flag | Frontend |
370
+
|------|----------|
371
+
| <nobr>`--open=vscode`</nobr> | Starts a DAP session and automatically opens Visual Studio Code. |
372
+
| <nobr>`--open=dap`</nobr> | Starts a debug adapter protocol (DAP) session, _without_ opening Visual Studio code. This allows for another DAP client to connect instead.
373
+
| <nobr>`--open=chrome`</nobr> | Starts a CDP session and automatically opens Chrome. |
374
+
| <nobr>`--open=cdp`</nobr> | Starts a Chrome debug protocol (CDP) session, _without_ opening Chrome. This allows for another CDP client to connect instead.
Copy file name to clipboardExpand all lines: misc/README.md.erb
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ d => 4
138
138
[1, 2, 3, 4]
139
139
```
140
140
141
-
### Invoke the program from the debugger as a traditional debuggers
141
+
### Invoke the program from the debugger as a traditional debugger
142
142
143
143
If you don't want to modify the source code, you can set breakpoints with a debug command `break` (`b` for short).
144
144
Using `rdbg` command (or `bundle exec rdbg`) to launch the program without any modifications, you can run the program with the debugger.
@@ -253,7 +253,7 @@ Examples:
253
253
* `rdbg -c -- bundle exec rake test`
254
254
* `rdbg -c -- ruby target.rb` is same as `rdbg target.rb`
255
255
256
-
NOTE: `--` is needed to separate the command line options for `rdbg` and invoking command. For example, `rdbg -c rake -T` is recognized like `rdbg -c -T -- rake`. It should be `rdbg -c -- rake -T`.
256
+
NOTE: `--` is needed to separate the command line options for `rdbg` from the invoked command. For example, `rdbg -c rake -T` is recognized like `rdbg -c -T -- rake`. It should be `rdbg -c -- rake -T`.
257
257
258
258
NOTE: If you want to use bundler (`bundle` command), you need to write `gem debug` line in your `Gemfile`.
You can attach with external debugger frontend with VSCode and Chrome.
361
+
You can start a debugging session for an external debugger frontend using:
362
362
363
-
```
363
+
```shell
364
364
$ rdbg --open=[frontend] target.rb
365
365
```
366
366
367
-
will open a debug port and `[frontend]` can attach to the port.
367
+
The currently available frontends are:
368
368
369
-
Also `open` command allows opening the debug port.
369
+
| Flag | Frontend |
370
+
|------|----------|
371
+
| <nobr>`--open=vscode`</nobr> | Starts a DAP session and automatically opens Visual Studio Code. |
372
+
| <nobr>`--open=dap`</nobr> | Starts a debug adapter protocol (DAP) session, _without_ opening Visual Studio code. This allows for another DAP client to connect instead.
373
+
| <nobr>`--open=chrome`</nobr> | Starts a CDP session and automatically opens Chrome. |
374
+
| <nobr>`--open=cdp`</nobr> | Starts a Chrome debug protocol (CDP) session, _without_ opening Chrome. This allows for another CDP client to connect instead.
0 commit comments