If you ever have a problem where ruby files are not loading properly when you start SketchUp, this may help you debug them.
Place this ruby script in the plugins folder, and it should create a file called c:\tmp\ruby_trace.txt which contains all of the messages which are sent to the Ruby Console (whether the Ruby Console is open or not).
- C:\tmp>type ruby_trace.txt
Fri Sep 24 00:51:28 -0600 2010
SketchUp Version: 8.0.3117
Console messages are going to c:\tmp\ruby_trace.txt
If you want to trace ruby files as they are loaded, you could place this line at the top of each .rb file, which does not already print its file name.
- Code: Select all
printf("***** Loading: %s\n",__FILE__)
[EDIT: Revised script for mkdir error]
[EDIT: 5/1/2011 - added timestamp for messages]
[Edit: 5/4/2001 - added machine independent code for file location]
Latest Version 5/4/2011:
(I want to apologize in advance for posting the same script to two SCF forums )