This plugin simplifies the debugging process with a few mouse clicks. It works in conjunction with Jim Foltz' rubytoolbar, which can be found here:
http://sketchuptips.blogspot.com/2007/08/plugin-ruby-toolbar.html
Once you've loaded the script you want to debug through the rubytoolbar, you can simply reload and execute your script in one step.
How does it work?
Lastloaded.rb looks for a line in your code tagged with:
- Code: Select all
#loadme
For example:
- Code: Select all
new_menu = UI.menu("Plugins")
cmd = UI::Command.new("text") {some command} #loadme
new_menu.add_item(cmd)
Lastloaded will now reload your script and automatically runs 'some command' for you. The script has a menu item in the Tools section, so you can assign a shortcut if convenient.
Have fun! I'm open for questions / suggestions