Is there a way of running shotgun to allow for ruby debugger statements to run? the -d
flag seems to be just for debugging output.
Asked
Active
Viewed 1,001 times
4

zlog
- 3,316
- 4
- 42
- 82
1 Answers
3
In order to find the best way to debug sinatra app, I created a repo at github. The most useful part is step into method debug, which looks like below.
Here is the repo: https://github.com/hlee/sinatra_debugger_example
I also confirmed this example support shotgun as well. try as below
cd sinatra_debugger_example
bundle
shotgun config.ru
and visit: http://localhost:9393
, you will be able to use pry debug and stepping.
About debugger & pry:
- the example project support both debugger and pry.
- I personally perfer pry better.
I hope it helps you.

Race
- 923
- 10
- 14