File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
rb/spec/integration/selenium/webdriver Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ test:windows --test_env=PROGRAMFILES(X86)="C:\\Program Files (x86)"
77
77
test --test_timeout=1800
78
78
79
79
test:node_debug --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results
80
+ test:ruby_debug --test_output=streamed --test_env=RUBY_DEBUG_FORK_MODE=parent --run_under="@bundle//:bin/rdbg --nonstop --open --command"
80
81
81
82
# The RBE to use
82
83
build:remote --bes_results_url=https://gypsum.cluster.engflow.com/invocation
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ echo 'RUBY_VERSION = "<X.Y.Z>"' > rb/ruby_version.bzl
274
274
If you want to debug code in tests, you can do it via [ ` debug ` ] ( https://github.com/ruby/debug ) gem:
275
275
276
276
1 . Add ` binding.break ` to the code where you want the debugger to start.
277
- 2 . Run ` bazel test --test_output streamed <test> ` . Streaming output is not required, but will clearly say when debugger starts .
277
+ 2 . Run tests with ` ruby_debug ` configuration: ` bazel test --config ruby_debug <test> ` .
278
278
3 . When debugger starts, run the following in a separate terminal to connect to debugger:
279
279
280
280
``` sh
Original file line number Diff line number Diff line change 17
17
# specific language governing permissions and limitations
18
18
# under the License.
19
19
20
- begin
21
- require 'debug/session'
22
- DEBUGGER__ ::CONFIG [ :fork_mode ] = :parent
23
- DEBUGGER__ . open ( nonstop : true )
24
- rescue LoadError
25
- # not supported on JRuby and TruffleRuby
26
- end
27
-
28
20
require 'rubygems'
29
21
require 'time'
30
22
require 'rspec'
You can’t perform that action at this time.
0 commit comments