Back to Gumroad

Debugging

docs/debugging.md

latest881 B
Original Source

Debugging

Read debugging tips and tricks in Notion if you face problems when setting up the development environment locally.

Visual Studio Code / Cursor Debugging

  1. Install the Ruby extension.
  2. Install the vscode-rdbg extension.
  3. Start the supporting services by running make local in a terminal.
  4. Run the non-rails services by running foreman start -f Procfile.debug in a terminal.
  5. Debug the Rails server by running the "Run Rails server" launch configuration in VS Code from the "Run -> Start Debugging" menu item.

Now you should be able to set breakpoints in the code and debug the application.