Hello, I was wondering, what is the correct way to achieve hotswapping of code using the current versions of gosu and pry? It's something I can't seem to achieve, exactly, going by the original description of the process.
What happens is, my game window hangs when I enter 'load filename.rb' after making and saving some changes (in an external text editor). If I use the 'edit filename.rb' command from within pry, upon saving my changes a brand new game window is initialized. in which the changes are reflected, but in which the key press that triggers binding.pry no longer functions. Closing that window reopens pry, and when I then enter 'continue', the original game window reopens in the state it was left, with the changes correctly reflected, and binding.pry again triggerable.
Any help would be appreciated.
Loading...