ruby-on-railslistrefreshruby-debug

Rails: Ruby debugger shows old code unless I stop the server and start it again


Using ruby-debug, when I issue a list command, it shows old code. So if I update the code surrounding (especially before) the debugger command in the model it still shows the old code.

The only way I have found to 'refresh' this code is by stopping the server and running it again.

Is there a better way?

Thanks,

Josh


Solution

  • Can't you just do a reload? You can also set a flag for auto-reloading but never tried it myself (I tend to use Netbeans now)