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

为君一笑 提交于 2019-12-10 19:08:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!