Is there a way from a ruby script to tell if SketchUp is running in debug mode? If I would be able to somehow get the command line arguments I could tell that way.
I’m currently launching SketchUp for debugging like this:
Now I paste in my code to add in a toolbar button that loads the rb files I’m working on. I would like for my extension to be able to determine if SU is running in debug mode at startup. If it is, show the ‘debug’ button.
I think we tried to forward all SU arguments to the Ruby interpreter, but ran into issues - would not pick up. Maybe because we are embedding the interpreter… so we added the -RubyStartupArg argument.