rdebug | Debug symbol resolution library | Code Inspection library
kandi X-RAY | rdebug Summary
kandi X-RAY | rdebug Summary
[License] rdebug is a debug symbol resolution library.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rdebug
rdebug Key Features
rdebug Examples and Code Snippets
Community Discussions
Trending Discussions on rdebug
QUESTION
Remote debugging in rubymine and I’m getting this error…
...ANSWER
Answered 2021-Jun-04 at 14:12Solution found:
So this line in the original tutorial is incorrect
QUESTION
when I try to configure debug in vscode for a Ruby on Rails app with docker, follow my Dockerfile:
...ANSWER
Answered 2020-May-19 at 18:49Looks like you have some funny encoding on line 3 of your start.sh
file that isn't being interpreted as a comment, which is likely causing the commented line to actually start a server.
When the bundle exec rdebug-ide --host 0.0.0.0 --port 1234...
command executes, it throws the 'port in use' error because there is already a server running on port 1234 from the first command.
If you remove the commented-out lines you should be good to go.
QUESTION
How can you launch Ruby on Rails using the built-in Visual Studio Code Launch/Debug features?
How do you fix the
Debugger terminal error: Process failed: spawn rdebug-ide ENOENT
error?
ANSWER
Answered 2020-Feb-24 at 14:51- Install the VS Code Ruby plugin (hit ⌘+⇧+P and type
ext install
in the prompt, then search forruby
) - Install some required Ruby gems
QUESTION
I'm trying to remote debug Ruby(on Rails) code in a Docker container with Visual Studio Code.
I do not have Ruby installed on my machine, just in Docker.
- VSCode: 1.32.3
- OS: Windows 10 Profesionnal, 1709
- Docker Desktop: 2.1.0.5 Community stable
- Docker: 19.03.5
- Ruby: 2.6.5
The procedure is as follows:
- Docker container executes command
bundle exec rdebug-ide --host 0.0.0.0 --port 1234 --dispatcher-port 26162 -- bin/rails s -b 0.0.0.0
then "Fast Debugger (ruby-debug-ide 0.7.0.beta7, debase 0.2.3.beta3, file filtering is supported) listens on 0.0.0.0:1234" - I start debugging in VScode and Puma starts.
- I operate the application.
- Break points are not working.
However, VSCode indicates the line being executed when I pause debugging. After that I can step over and VARIABLES, WATCH and CALL STACK are working.
It seems that only BREAKPOINTS are not working.
Here is my file (snippets):
launch.json:
...ANSWER
Answered 2019-Jan-10 at 03:50In your launch.json
you might need to add paths to bundle and RdebugIde. Something like:
QUESTION
While debugging rspec unit tests from Rubymine I'm getting this error:
...ANSWER
Answered 2019-Apr-19 at 13:22For those who has faced the same issue: it is a known problem (https://youtrack.jetbrains.com/issue/RUBY-24021) that is fixed starting from RubyMine 2019.1.1 RC.
QUESTION
I used to debug test cases in ruby mine for my rails test cases. Some time ago I updated my ruby mine and not sure what happened since then, I am not able to debug my test cases. Attaching the screenshot of the error below:
What can be done here to rectify this?
Here is the same console output in plain text:
...ANSWER
Answered 2019-Jan-10 at 11:40The beta6 version of the ruby-debug-ide gem that you use is older than rspec 3.8. Maybe upgrading ruby-debug-ide to the latest beta7 version helps (or downgrading rspec to a version older than beta6).
QUESTION
I’m trying to configure debugger for my web application, but I run into trouble with specifying correct ports for it.
Vagrantfile:
ANSWER
Answered 2018-Aug-06 at 16:08you already have something listening on port 80 (apache or nginx) so you cant bind on this port. You can do one of the following
- start rails on another port like 3000
in your vagrant start rdebug-ide --host 0.0.0.0 --port 3000 --dispatcher-port 3000 -- bin/rails s
If you use a private network IP in your vagrantfile you dont need to forward port as you'll access your VM server using its own IP
- check what is listening on port 80
run sudo netstat -nltp
in your VM, check the process which binds the port 80 and kill it
For example
QUESTION
I'm on MacOS Sierra and use rbenv.
Here is my configuration for my Rails server configuration:
...ANSWER
Answered 2018-Feb-11 at 13:07I figured out that -p 4002
contains TWO arguments: the -p
flag, and 4002
flag value; it's not one whole argument.
The working configuration:
QUESTION
I am trying to use VS Code for debugging a Ruby on Rails application. I have installed both the Ruby and Rubocop extension into VS Code. Then I have installed ruby-debug-ide -v 0.6.0
and debase -v 0.2.1
both via sudo gem install
and rvmsudo gem install
. However, when trying to debug the application using Rails server, I get the following exception:
ANSWER
Answered 2017-Feb-08 at 14:55In my case, the solution was quite simple. As a newbie in Ruby on Rails, I did not realize that instead of installing gems into Ruby root, I should specify them in my Gemfile. So, inside Gemfile I put only:
QUESTION
I cannot get debug mode working in RubyMine. Below is what I did to install it all. This is followed by the error details and my setup Any advice please
A Download and Install Ruby
1.Download Ruby 2.2.6 - http://rubyinstaller.org/downloads/
2.Install Ruby 2.2.6 to C:\Ruby
B Download Ruby Dev kit
3.Return to http://rubyinstaller.org/downloads/
4.Under development click on "https://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe"
5.Create Folder C:\Ruby\DevKit
6.Unzip "DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe" into C:\Ruby\DevKit
8.Go to folder C:\Ruby\DevKit , Now press Shift then right click "Open command window here"
9.Type "ruby dk.rb init" in command prompt and hit enter (c:\DevKit>ruby dk.rb init)
10.Type "ruby dk.rb install" in command prompt and hit enter (c:\DevKit>ruby dk.rb install)
C Install RubyGems
11.Open command prompt and type the following commands and hit enter every time c:\gem install bundler
Then navigate to your project folder where the Gemfile located and run command 'bundle install'
D Download and Install Ruby Mine
13.Open http://www.jetbrains.com/ruby/download/
14.Click on 30 days Trial "Download Now"
15.Now Install Ruby Mine
From this point I can load projects and run projects but when I try to debug the same project I get issues.
The message is Test framework quit unexpectedly
...ANSWER
Answered 2017-Jul-27 at 07:34OK got this working now. I opened the Command Prompt as Administrator and then executed the following c:\gem install ruby-debug-ide c:\gem install debase
This time they both executed with no error. I then restarted RubyMine and now I can run in debug mode. Happy days....
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rdebug
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page