![rubymine 6.0.1 rubymine 6.0.1](https://i.stack.imgur.com/UwV6O.png)
Rubymine 6.0.1 plus#
In the new dialog, I selected my new Sketchup 2014 Remote Mode and clicked upon the green plus sign to add a tool setup: Having the VBS-script in the right place, I continued to add the proper Before launch entry by clicking on the green plus sign and select Run external tool So I started a notepad in parallel, pasted in the 4 following lines, which where just adapted to my SketchUp.exe and saved that stuff as "D:\SketchUp 2014\Remote_Debug_SketchUp2014.vbs" (that is, I made it into the same directory where SketchUp itself is located):ĭim objShellSet objShell = WScript.CreateObject("WScript.Shell")objShell.Run("""D:\SketchUp 2014\SketchUp.exe"" -rdebug ""ide port=7000""")Set objShell = Nothing I gave it the Name = SketchUp 2014, set the remote port to 7000, let the local port at the (magic?) default 26162 and set both folders remote root and local root to where my HelloSketchUpWorld.rb file is lcoated, that is: "C:\Users\kr\RubymineProjects\SketchUpTest, but didn't close the dialog with OK, as I also wanted to link the start of the Sketchup2014-exe with a VBS as well: Now RubyMine comes up with a template to fill out: Select the Ruby root node and click on the upper left plus sign to create a new entry (note: it must be done on the Ruby node, not the HelloSketchUpWorld one): Obviously, there lacks a remote debug entry, so I created one:
Rubymine 6.0.1 windows 8.1#
So it is time to remote connect the SketchUp.exe with the RubyMine IDE! I did so as described on, just adapted a bit to my Windows 8.1 configuration:
Rubymine 6.0.1 code#
Another F8 drives the debugger into an error -as expected, because the 2nd line holds SketchUp specific code to draw a line which cannot be handled within just RubyMine: The Ruby debugger processed the 1st line as it should. Pressing F8 to step over that line and switching to the Console window shows that everything works as expected: Voila, it runs till the first breakpoint and sits & waits for user actions: Set a line break-point on the 1st line, made a right click on the HelloSketchUpWorld.rb entry of the project tree and selected Debug 'HelloSketchUpWorld.rb' as action: I filled that file with just 3 lines of simple Ruby-code: In that new project, I created a new Ruby-file named HelloSketchUpWorld: right click upon the project folder, new -> file -> HelloSketchUpWorld.rb: This script I made inside RubyMine into a project on its own: "C:\Users\kr\RubymineProjects\SketchUpTest\HelloSketchUpWorld.rb" Puts "Hello World!"Sketchup.active_line, puts "thats all folks!" "SURubyDebugger.dll" into the respective SketchUp root directory, that is: "D:\SketchUp 2014\SURubyDebugger.dll" made a small test-script which I named testSU.rb, containing just the following:
![rubymine 6.0.1 rubymine 6.0.1](https://user-images.githubusercontent.com/44662993/66391718-76783600-ea00-11e9-841c-7dfbda7ececb.png)
Installed SketchUp 2014 to "D:\SketchUp 2014\SketchUp.exe" installed RubyMine 6 to "C:\Program Files (x86)\JetBrains\RubyMine 6.0.1\bin\rubymine.exe" installed SketchUp-Ruby-API Debugger from by putting the (32 bit-) version of