SketchUp Debugging for Notepad++
-
Sure there is!
I've not had time to use it, but it seems promising -
ditto.
-
does the plugin work for SU 2015?
-
@woodshop said:
does the plugin work for SU 2015?
The plugin is for the editor Notepad++. The SketchUp Ruby Debugger works with SketchUp 15, so yes you should be able to connect Notepad++ to the SketchUp debug server.
-
I have a question,the notepad++ v6.6.2.is old ,how can I use the script for my notepad
-
@ying2014 said:
I have a question,the notepad++ v6.6.2.is old ,how can I use the script for my notepad
Hi Ying,
I haven't tried it in years. This was more a proof-of-concept than a finished plugin. I was disappointed with the poor integration of the plugin with the Notepad++ user interface. The plugin is written in Python and uses the PythonScript plugin for Notepad++.
I have just now been trying to get this to work on version 6.9.1 but so far have not had success getting Python Script to work.
-
Hi Jim, Thanks for your answer,I'm looking forward to it can succeed.
-
You can try it by downloading this file.
Extract the .zip and start Notepad++ by clicking the notepad++.exe file inside.
Open a Ruby extension to debug. Press F5 to start SketchUp in Debug mode.
Press the SketchUp Icon in the toolbar - this will start SketchUp and add a new margin in the editor - click on the margin to set breakpoints.
https://www.youtube.com/watch?v=wzmiRASn5x8%26amp;feature=youtu.be
-
hello.jim,it can't work well
Connecting to SketchUp..
Traceback (most recent call last):
File "plugins\Config\PythonScript\scripts\SketchUp\init.py", line 2, in <module>
sudb.init()
File "C:\Users\zyq\Downloads\npp-6.9.1+skpdbg\plugins\Config\PythonScript\scripts\sudb.py", line 100, in init
connect()
File "C:\Users\zyq\Downloads\npp-6.9.1+skpdbg\plugins\Config\PythonScript\scripts\sudb.py", line 111, in connect
except socket.error (value, message):
NameError: global name 'value' is not defined
sending: v l
Traceback (most recent call last):
File "plugins\Config\PythonScript\scripts\SketchUp\local-vars.py", line 2, in <module>
sudb.local_vars()
File "C:\Users\zyq\Downloads\npp-6.9.1+skpdbg\plugins\Config\PythonScript\scripts\sudb.py", line 327, in local_vars
send("v l")
File "C:\Users\zyq\Downloads\npp-6.9.1+skpdbg\plugins\Config\PythonScript\scripts\sudb.py", line 160, in send
sock.send(msg)
socket.error: [Errno 10057] ԉԚ͗ޓؖûԐlޓҢȒ(ձʹԃһٶ sendto ַԃע̍˽ߝѨ͗ޓؖʱ) -
It looks like SketchUp is not running the debug server. Start SketchUp from Notepad++ by pressing the F5 key. This launches SketchUp using this command line:
Sketchup.exe -rdebug "ide port=1234"
If you need to change which version of SketchUp, or the location of SketchUp then edit the "shortcuts.xml" file in the NPP folder.
SketchUp must be started with the debug server enabled before pressing the SketchUp icon from the editor.
Again, this debugger is never going to work well because of limitations in PythonScript for Notepad++ and in the SketchUp debug server.
I have tried to fix your error. Extract the file "sudb.py" and replace it in the "plugins\Config\PythonScript\scripts" folder.
-
Sorry,it don't work:
Connecting to SketchUp..
socket error: [Errno 10061]
Could not connect to SketchUp. -
Here is a link to Windows socket errors.
@unknownuser said:
10061 Connection refused.
No connection could be made because the target computer actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host—that is, one with no server application running.
How are you starting SketchUp?
-
hello ,jim
I use Press F5 to starting Sketchup -
@ying2014 said:
hello ,jim
I use Press F5 to starting SketchupWhich version of SketchUp is being launched? Is the file "SURubyDebugger.dll" located in the correct folder (as in the image for SketchUp 16?)
Does SketchUp start completely, or does it freeze? When started with the debug server, SketchUp will appear to freeze while it is waiting for a "start" or "continue" command from Notepad++.
Is you firewall set to allow connections to SketchUp?
Advertisement