did anyone of you succeed in using RubyMine to debug Ruby-scripts inside of Google's/Trimble's SketchUp?
-The description given at https://github.com/SketchUp/sketchup-ruby-debugger states that SketchUp's Ruby API Debugger also works with RubyMine's IDE, but I can't make it work.
My setup is as follows:
- I have SketchUp2014, together with the SURubyDebugger.dll on a Windows 8.1 PC
- I startup SketchUp as described: "SketchUp.exe" -rdebug "ide port=1234"
- now SketchUp sits there and is not responsive -that's for sure, as it waits for an IDE to connect to the stated port 1234. If I do so with Aptana Studio 3 and its remote debugging capabilities, that both do find each others and I can go into SketchUp's "Ruby Console" to load a script
However in RubyMine (I'm still on 6.0), all that doesn't work, but I'm pretty sure it is just for my lack of understanding / lack of precision of the online help how to do it?:
I made a little test-script, named C:\Users\kr\RubymineProjects\testSU\testSU.rb, and consisting just of two lines of simple Ruby code:
puts "Hello World!"
Sketchup.active_model.entities.add_line [0,0,0], [9,9,9]
Now in RubyMine, I made under "Run" -> "Edit configurations" -> "Defaults" -> "Ruby Remote debugging" the following entries as shown in the attached JPG file testSU.jpg:
- Remote host = localhost (as SketchUp and RubyMine are sitting both on the same PC)
- Remote port = Local port = 1234 (as this is the only port I can use in the SketchUp command line)
- Remote root folder = Local root folder = C:\Users\kr\RubymineProjects\testSU\ (as this is the folder where the testSU.rb file is sitting in)
Is this correct? (The info stated at http://blog.jetbrains.com/ruby/2009/05/ruby-remote-debug/ doesn't really help on SketchUp): How do I start the connection now? I'd normally expect that I a) first could invoke RubyMine's debug session in that afterwards, I would be able to "unfreeze" SketchUp this way & load the script within its "Ruby console" window, which would trigger SketchUp to start processing the script. But obviously, that's not the way it works..
Any hints welcome!