Reputation: 1993
I'm having the problem that byebug class are ignored after the first one. It's very strange.
I start the server. Whenever there is a byebug statement, if it is the first one since the server has started, it will work. If not, it will say this message: *** Byebug already started. Ignoring
byebugcall.
and the only way for the debugger to work would be to restart the server (and it will only work once).
Any help would be really appreciated.
BTW, this happens with every project.
Thanks.
Upvotes: 8
Views: 1498
Reputation: 17898
This has been reported and fixed, but isn't in a release yet.
To work around for now you update your Gemfile
with:
gem 'byebug', github: 'deivid-rodriguez/byebug', branch: 'master'
Then bundle update byebug
and restart your Rails server.
Upvotes: 6