23rd April, 2020 Output.

Overview

The byebug gem takes debugging to a whole other level. Think of it as a way to add breakpoints within your controllers as bugs arise. Byebug allows you to go step by step to see where things may or may not be going well with your ruby code. This too comes by default in Rails in your development and test groups inside the Gemfile.

What Byebug Does:

1. Stop execution anywhere in any piece of code to look around and see what’s going on

2. View a complete backtrace of every bit of code leading up to where you are (including any framework code)

3. Navigate around, step into, and continue through any additional code calls.

Byebug Commands

To continue running the app until the next byebug command or the end of your application if you don’t have any, you simply type continue in the terminal, step to step into and next to move to the next line of code.

To take a look as to what ByeBug offers, type (help) inside of the ByeBug terminal:

Reference

Web-Crunch

Medium

Hackernoon

Previous
Previous

29th April, 2020 Output

Next
Next

MY TAKE ON OWASP AND RAILS GOAT