All Questions
504
questions
0
votes
0
answers
34
views
Ruby debugging will not work in VSCode for any of the debuggers
I am trying to debug a ruby program and cant get the debugger to work for ANY of the debuggers. I have tried rdbg, pry-byebug, byebug and LSP. Every time I try to run the bebugger it says DEBUGGER : ...
0
votes
0
answers
64
views
Rails freezes during debugging
My Rails app freezes when I use the latest Ruby/Debug gem.
Debug works when I use thor on my app, but when I want to use it on my app (rails server)
it freezes. By "freezing I mean the request in ...
0
votes
0
answers
27
views
VSCode Ruby get message "press 'Enter' to confirm your input or 'Escape to cancel" when run or debug a file
I have actually resolved the problem but passing info for anyone else getting same problem. Found several solutions but they were answers to symptoms not this problem.
Had created a couple of new ...
0
votes
0
answers
31
views
How to use a Ruby debugger with a jekyll site?
I'm used to debugging in VS/Rider and C++, and I'm now developing Ruby and Jekyll. How can I set up VS Code to be able to set breakpoints when running my Jekyll build system?
0
votes
1
answer
60
views
Ransack search not returning expected results with enum field in Rails
I'm facing an issue with Ransack search in my Rails application when attempting to filter results based on an enum field. Despite implementing what appears to be a correct setup, the search doesn't ...
0
votes
1
answer
81
views
How do I debug a rails application on my macbook using lldb?
I'm in the middle of a major yak-shave, trying to figure out why my rails application crashes on my mac with the following error:
$rails s -e production
=> Booting WEBrick
=> Rails 6.1.6.1 ...
0
votes
0
answers
45
views
How do I keep the debugger attached when the code auto-reloads?
I'm improving my development environment for a dockerized ruby application.
My code editor is VSCode and I am using rdbg to provide an interactive debugger
I am also using the rerun gem to provide ...
1
vote
0
answers
227
views
How can I debug Fastlane file in VSCode with "VSCode rdbg Ruby Debugger" or similar?
I'm trying to debug my custom lane Fastlane code within VSCode, but it cannot find Fastlane source code. What may be a minimal launch.json snippet and what other setup is necessary?
So far I tried the ...
0
votes
0
answers
42
views
Hangman Ruby Game - Why Does the Winning Message Delay and Saved Game Prompt Repeat?
I am developing a Hangman game as part of the Odin Project curriculum (https://www.theodinproject.com/lessons/ruby-hangman).
The game utilizes a dictionary file (https://raw.githubusercontent.com/...
0
votes
1
answer
112
views
Rails 7 won't generate a destroy path for the comment deletion [closed]
I'm trying to make a delete helper for a comment, this is the html code :
<% if store_comment.user_id == current_user.id %>
<%= link_to 'edit', edit_store_post_store_comment_path(params[:...
2
votes
0
answers
210
views
Rubymine debugger doesn't stop at breakpoints
I'm using Rubymine v2023 3.2.2
When I click on the debugger icon, it starts to debug but doesn't stop at the breakpoints but keeps running the full code.
I tried to restart my pc, uninstall rubymine ...
0
votes
1
answer
299
views
Debug problems with specific (worked for 7 years) launch.json configurations
I recently uninstalled ruby 3.1.2 and VSCode due to a problem debugging programs. I re-installed ruby 3.1.4 and VSCode.
My Configuration is: Windows 11, rubyinstaller-devkit-3.1.4-1-x64 , ...
0
votes
2
answers
538
views
Why does the VSCode ruby debugger show mutiple active connections on 127.0.0.1 p1234
I am unable to debug Ruby programs in VSCode gives error
ECONNREFUSED ::1:1234
in debug console which I believe is the same error get when starting a debug session without ending the first. ...
0
votes
1
answer
725
views
Problems debugging Ruby in VSCode - debugger not executing AND can not display variables
Both of theses cost me a couple of hours each hoping to save someone else the headache
Rather than a question this is the SOLUTIONS to 2 Ruby VSCode debug problems I had.
Debugger would only ...
2
votes
1
answer
99
views
How can I run an rspec expect statement in a ruby debugger?
Whenver I want to write a semi-complex expectation, I start having to play around with matchers, seeing how can I combine them. For example, if I want to test that all hashes of an array of hashes don'...