问题
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
回答1:
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)
来源:https://stackoverflow.com/questions/2449705/rails-ruby-debugger-shows-old-code-unless-i-stop-the-server-and-start-it-again