sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    SketchUp Debugging for Notepad++

    Scheduled Pinned Locked Moved Developers' Forum
    22 Posts 6 Posters 3.4k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jolranJ Offline
      jolran
      last edited by

      ditto.

      1 Reply Last reply Reply Quote 0
      • W Offline
        woodshop
        last edited by

        does the plugin work for SU 2015?

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jim
          last edited by

          @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.

          Hi

          1 Reply Last reply Reply Quote 0
          • Y Offline
            ying2014
            last edited by

            I have a question,the notepad++ v6.6.2.is old ,how can I use the script for my notepad

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by

              @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

              1 Reply Last reply Reply Quote 0
              • Y Offline
                ying2014
                last edited by

                Hi Jim, Thanks for your answer,I'm looking forward to it can succeed.

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jim
                  last edited by

                  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.

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • Y Offline
                    ying2014
                    last edited by

                    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 ַԃע̍˽ߝѨ͗ޓؖʱ)

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      Jim
                      last edited by

                      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.


                      sudb.zip

                      Hi

                      1 Reply Last reply Reply Quote 0
                      • Y Offline
                        ying2014
                        last edited by

                        Sorry,it don't work:

                        Connecting to SketchUp..
                        socket error: [Errno 10061]
                        Could not connect to SketchUp.

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          Jim
                          last edited by

                          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?

                          Hi

                          1 Reply Last reply Reply Quote 0
                          • Y Offline
                            ying2014
                            last edited by

                            hello ,jim
                            I use Press F5 to starting Sketchup

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jim
                              last edited by

                              @ying2014 said:

                              hello ,jim
                              I use Press F5 to starting Sketchup

                              Which version of SketchUp is being launched? Is the file "SURubyDebugger.dll" located in the correct folder (as in the image for SketchUp 16?)

                              2016-04_383.jpg

                              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?

                              Hi

                              1 Reply Last reply Reply Quote 0
                              • 1
                              • 2
                              • 2 / 2
                              • First post
                                Last post
                              Buy SketchPlus
                              Buy SUbD
                              Buy WrapR
                              Buy eBook
                              Buy Modelur
                              Buy Vertex Tools
                              Buy SketchCuisine
                              Buy FormFonts

                              Advertisement