Skip to content

Commit

Permalink
Add readme about debugging using pry remote (rubyforgood#4085)
Browse files Browse the repository at this point in the history
* Add readme about debugging

* Mention regular pry; remove long example
  • Loading branch information
vincent-truong-main authored Feb 7, 2024
1 parent 779ab58 commit 0f76c8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ Users that are frequent contributors and are involved in discussion (join the sl
### Stay Scoped

Try to keep your PRs limited to one particular issue, and don't make changes that are out of scope for that issue. If you notice something that needs attention but is out of scope, please [create a new issue](https://github.com/rubyforgood/human-essentials/issues/new).
## Debugging
If starting server directly, via `rail s` or `rail console`, or built-in debugger in RubyMine, then you can use `binding.pry` to debug. Drop the pry where you want the execution to pause.

If starting via Procfile with `bin/start`, then drop a ``binding.remote_pry`` into the line where you want execution to pause at. Then run ``pry-remote`` in the terminal to connect to it.
https://github.com/Mon-Ouie/pry-remote


## Testing 🧪
### Writing Tests/Specs
Expand Down

0 comments on commit 0f76c8f

Please sign in to comment.