Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GUI based debugger for Ruby?

Tags:

ruby

debugging

Is there any GUI based debugger for Ruby? Just a debugger. I do not want a full IDE like NetBeans because they tend to get your project dirty with extra files.

thanks!

like image 372
Manuel M Avatar asked Aug 31 '09 17:08

Manuel M


People also ask

Does Ruby have a debugger?

To help deal with bugs, the standard distribution of Ruby includes a debugger. In order to start the Ruby debugger, load the debug library using the command-line option -r debug. The debugger stops before the first line of executable code and asks for the input of user commands.

Can you debug Ruby in VSCode?

Go to the debugger view of VS Code and hit the gear icon. Choose Ruby or Ruby Debugger from the prompt window, then you'll get the sample launch config in . vscode/launch.

How do you use Byebug in Ruby?

wherever you'd like the application to "break" - that is, executing byebug is equivalent to putting a breakpoint in your code. Run the program and use the debugger commands once you reach the breakpoint. near the end. Restart your server.


2 Answers

Check out Mr. Guid, which uses GTK+ and is cross-platform.

like image 70
ewall Avatar answered Oct 07 '22 19:10

ewall


In netbeans you can tell it to put the netbeans project files in a separate directory or you can easily ignore the nbproject directory with your project's vcs. Netbeans has by far the best integrated debugging I have seen and there are many other great reasons to give it a try. Don't worry about netbeans using a project folder. I highly doubt you'll be able to find a better free GUI debugger.

If the code completion stuff gets in your way with netbeans it is easy to turn off and only request code completion when you want it (ctrl+space). That was my biggest gripe with netbeans.

like image 33
Sean McCleary Avatar answered Oct 07 '22 18:10

Sean McCleary