Use netbeans debug RubyCode
Netbean debug Ruby
Debug Ruby code in netbeans
1. Get the gems package ruby-debug-ide-0.4.6.gem for ruby-debug-ide now I only see 0.4.6 and 0.4.5 available, and other high versions will always have issues 2. Install the gem package Start Menu-> Run-> cmd, enter the command line Input window to enter the directory where you store the ruby-debug-ide-0.4.6.gem package, then type the gem install ruby-debug-ide-0.4.6.gem, press ENTER 3. Enter netbeans, right-click the file you want to debug, select the debug file (CTRL + Shift + F5), and then you may be prompted to install the debugger, because I have installed it .... Select the quick debugger, and you will be able to complete the installation. 4. Of course, before debugging, you must set the breakpoint like this
Then step F7 (enter the function to be entered) and step F8 (if the function does not enter the function, if it is a single statement, the effect is the same as that of F7) you can also see these steps and steps through the toolbar above.