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

    How to debug?

    Scheduled Pinned Locked Moved Developers' Forum
    46 Posts 13 Posters 78.3k Views 13 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.
    • thomthomT Offline
      thomthom
      last edited by

      @brian_concannon said:

      I manually slog through with my own return nils, breaks, testing puts, UI.messageboxe, refreshes etc till I get it to work

      That's my method of debugging as well. A debugger would be welcome. There is one out there already SuRDebug: http://code.google.com/p/surdebug/wiki/SuRDebug

      I never got around to fully make it work... 😞

      Thomas Thomassen β€” SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • B Offline
        brian_concannon
        last edited by

        I tried SurDebug early on and could not make it work either. I was told that the author got angry about some criticism, and he stopped working on it. There were no recent posts about it at the site that you show.

        Debuggifier's concept is not as nice as the SurDebug concept, as it inserts debug statements after every Ruby statement in all or part of the code. It can be commented / uncommented at will, and totally removed ("undebuggified") when the Plugin development is complete. But I found it necessary to develop for my own programming, because Ruby is so hard to program with. Anyone using a true IDE knows this.

        I will clean up Debuggifier a little and then post it. Since it is an EXE and requires VB6 DLL's to be installed with InstallShield etc, can I upload it to this forum? Can I upload a zip file?

        1 Reply Last reply Reply Quote 0
        • Rich O BrienR Offline
          Rich O Brien Moderator
          last edited by

          There's a 4mb limit and it'll will need to be .zip

          Download the free D'oh Book for SketchUp πŸ“–

          1 Reply Last reply Reply Quote 0
          • ChiefwoodworkerC Offline
            Chiefwoodworker
            last edited by

            @thomthom said:

            And under Windows you have this snippet to output the data to debuggers like DebugView:
            http://forums.sketchucation.com/viewtopic.php?f=180&t=31216&p=274668#p274467

            A friend of mine showed me how to interface Unit Test (http://ruby-doc.org/stdlib-1.9.3/libdoc/test/unit/rdoc/Test/Unit.html) to the SketchUp API and the Ruby Console. It works really great for certain classes of scripts or methods and it allows you to develop a suite of tests that you can run automatically.

            If anyone is interested I can add instructions to this forum.

            Joe....
            http://www.srww.com

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              @chiefwoodworker said:

              If anyone is interested I can add instructions to this forum.

              πŸ‘ πŸ‘

              Thomas Thomassen β€” SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • liquid98L Offline
                liquid98
                last edited by

                [encourage] πŸ‘ [/encourage]

                Things that flourish fall into decay. This is not-Tao, And what is not-Tao soon ends ~ Lao tse

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

                Advertisement