Skip to main content

Debugging

JavaScript​

You can use your browser's developer tools.

Ruby (Rails application)​

Below are two options for "live"-debugging Ruby code (i.e., while the application is running).

Pry​

Install pry and set binding.pry breakpoints to debug your Ruby code. Pry should work independently of your IDE.

Visual Studio Code​

If you're using the Visual Studio Code IDE, you can use it's visual / GUI debugger. The configuration depends on your local setup, however, these instructions could help you get started.

In case debugging doesn't work yet, have a look at the following resources to fine-tune your configuration:

  1. Rubyide Debugger
  2. VSCode recipe for Ruby on Rails