I spent a good 45 minutes puzzled as to why byebug wasn’t working from within a gem I’m debugging. Even more confusing was that when I set byebug in the gem code along with some debugging code, and stepped into the gem, I saw my code edits along with the call to byebug… but the new code was never reached, it was as if it was being skipped right over. Odd.
Went for a cup of coffee and to ponder this….
Finally, I figured out that spring was preloading the app and keeping the gems loaded – even after I changed the gem code.
For now, I’m going to keep spring disabled by setting DISABLE_SPRING=1 in my .env file.
Latest posts by Chris Downey (see all)
- Quick Notes for Adding SSL to WordPress - July 20, 2017
- GTD: what’s nagging at you, right now? - June 17, 2017
- Deploy Windows 10 using VirtualBox, WinPE, WIM files - May 21, 2017