thedarkone / rails-dev-boost

Speed up slow Rails development mode
MIT License
467 stars 46 forks source link

When adding 'debugger' line in a controller, you need to restart the server #37

Closed valk closed 10 years ago

valk commented 11 years ago

Can someone confirm this? Thanks

thedarkone commented 11 years ago

Hey,

I'm not sure what you mean by the debugger line. Do you mean something like the debugger gem or some form of the manual puts 'is it working?' debugging? Either way it should work.

Can you please post your Ruby/Rails/OS information? Can you provide a small Rails app reproducing your issue?

There is built-in debug mode in rails-dev-boost that can be enabled by putting this line a Rails initializer file (these are found in config/initializers directory):

RailsDevelopmentBoost.debug!

After restarting your server rails-dev-boost will start to spewing detailed tracing information about its actions into your development.log file. Can you see a potential problem in the rails-dev-boost's debug information or provide a sample development.log output?

Thanks!

valk commented 11 years ago

Hi thedarkone,

I probably somehow overlooked the requirement to put RailsDevelopmentBoost.debug! into initializers. I just made this, will report if there will be any problem.

Thanks a lot!

thedarkone commented 11 years ago

@valk: RailsDevelopmentBoost.debug! only turns on the debug mode, not the rails-dev-boost as a whole (it is enabled automatically in development mode).

thedarkone commented 11 years ago

@valk what's up? Did you try looking at the rails-dev-boost debug output?