Are you testing a Rails app with RSpec/Capybara? You should be able to just put a byebug or binding.pry statement (depending on which you're using) right in your app's source. For example in a controller action or a method in a model.
When you refresh the page or hit an api endpoint, etc.. you should jump straight into a REPL from the terminal you ran the specs from. It should just work, I do this daily On Wednesday, May 1, 2019 at 6:45:57 AM UTC-7, Benoit Tigeot wrote: > > Hello Evette > > We need more info to help you. What do you mean by? > > > But is there a way to debug through the web server whilst RSpec tests > are running? > Regards > > Le 01/05/2019 à 14:56, Evette a écrit : > > I am able to debug my rspec test file through RubyMine and I can use the > step through debugger which has been super helpful. > But is there a way to debug through the web server whilst RSpec tests are > running? > > We are using the following: > > rails (4.2.11, 4.2.7) > > puma (3.12.1, 3.12.0) > > ruby 2.3.3p222 > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rspec/b534176f-d97b-46ba-92b1-dfdd25e0c798%40googlegroups.com > > <https://groups.google.com/d/msgid/rspec/b534176f-d97b-46ba-92b1-dfdd25e0c798%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/3df796b7-294a-420a-8b41-44a428a64023%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
