3

This drove me nuts for the longest time and I thought my rails s was not reloading my code when in fact the debugger was not reloading it.

Then I found from this post that auto-reloading is not default. WHY NOT???

If you are debugging code, and you see an error, you are clearly trying to change it. And when you change it and the debugger keeps your old buggy code, what's the point?

I would like to set autoreloading to default but right now you have to do this:

rdebug reads its configuration file at startup. create a file ~/.rdebugrc with this content:

set autoreload

or an explanation of how I am using the debugger incorrectly. Thank you very much!

Community
  • 1
  • 1
Jonathan Leung
  • 2,051
  • 2
  • 19
  • 24

1 Answers1

0

This Pivotal Labs article should give the answer.

Caveat: This worked on my Ubuntu environment, but in my current setup (Mac OS X) I can't get changes in controllers auto reloaded even with this. Could you let me know your setup and if it works for you?

Joshua Pinter
  • 45,245
  • 23
  • 243
  • 245
Kaya
  • 95
  • 1
  • 9