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
If you want to debug code in tests, you can do it via [`debug`](https://github.com/ruby/debug) gem:
272
+
273
+
1. Add `binding.break` to the code where you want the debugger to start.
274
+
2. Run `bazel test --test_output streamed <test>`. Streaming output is not required, but will clearly say when debugger starts.
275
+
3. When debugger starts, run the following in a separate terminal to connect to debugger:
276
+
277
+
```sh
278
+
bazel-selenium/external/bundle/bin/rdbg -A
279
+
```
280
+
271
281
If you want to use RubyMine for development, a bit of extra configuration is necessary to let the IDE know about Bazel toolchain and artifacts:
272
282
273
283
1. Run `bazel build @bundle//:bundle //rb:selenium-devtools //rb:selenium-webdriver` before configuring IDE.
0 commit comments