Complete the code to start a debugging session using pry.
require 'pry' x = 10 binding.[1] puts x
To start a debugging session with pry, use binding.pry.
Complete the code to start a debugging session using byebug.
require 'byebug' x = 5 [1] puts x
To start a debugging session with byebug, just call byebug where you want to pause.
Fix the error in the code to correctly start a pry debugging session.
require 'pry' x = 7 binding.[1]() puts x
The correct method to call is binding.pry. It can be called with or without parentheses.
Fill both blanks to start a byebug session and assign a variable.
require 'byebug' [1] = 20 [2] puts value
Assign the number 20 to val and call byebug to start debugging.
Fill all three blanks to start a pry session, assign a variable, and print it.
require 'pry' [1] = 15 binding.[2] puts [3]
Assign 15 to num, start pry with binding.pry, and print num.
