Giter Club home page Giter Club logo

sketchup-ruby-debugger's Introduction

SketchUp Ruby API Debugger

This is a Ruby debugger framework for SketchUp 2014 and later. The ruby-debug-ide protocol has been mostly implemented so any Ruby IDE that supports this protocol should work.

IDE Stable (1.0.3.0) Stable (1.1.0.0) Stable (1.2.0.0) Stable (1.3.0.0)
Aptana RadRails Good Untested Untested Untested
NetBeans (with Ruby community plugin) Good Untested Untested Untested
RubyMine Good Good Good Untested
VS Code (with vscode-ruby extension) Not supported Good Good Good

Instructions for Windows:

  • Download the pre-built dynamic library (SURubyDebugger.dll) from the latest release or build from the sources.
  • Copy the DLL into the SketchUp installation directory. As the exact path will depend on the version of SketchUp you have installed, look for a folder similar to the following:
C:\Program Files\SketchUp\SketchUp 2021\

C:\Program Files (x86)\SketchUp\SketchUp 2015\
  • Start SketchUp from the command line or the "Run..." dialog:
SketchUp.exe -rdebug "ide port=7000"

Instructions for Mac OS X:

  • Install SketchUp 2014 Maintenance 1 Release (version 14.1.1283) or later.
  • Download SURubyDebugger.dylib into the Frameworks directory of the app bundle:
curl -L https://github.com/SketchUp/sketchup-ruby-debugger/releases/download/1.3.0.0/SURubyDebugger.dylib -o /Applications/SketchUp\ 2019/SketchUp.app/Contents/Frameworks/SURubyDebugger.dylib
  • Run SketchUp from the command line:
open -a /Applications/SketchUp\ 2021/SketchUp.app --args -rdebug "ide port=7000"

Command-line arguments:

When launching SketchUp with debugging enabled, the following command-line arguments are supported:

-rdebug "ide [port=<number>] [wait]"
  • port=<number> - Configures the port on which the SketchUp debugger accepts connections from IDEs. This must match the remote debugger port setting configured in the IDE. If not specified, the port defaults to 1234.

  • wait - Instructs the SketchUp debugger to wait for an initial connection from an IDE before allowing execution to continue. This is necessary to debug scripts that run automatically, for instance when an extension is loaded. When using this option, the SketchUp process will appear to be frozen until an IDE is attached.

Notes:

While most common debugging functionality has been implemented, there are few TODOs:

  • Debugging of multi-threaded execution
  • Function breakpoints
  • Exception breakpoints
  • Are we missing something else? Please report and contribute!

To contribute, please fork the repository, make your changes and submit a pull request.

Happy Debugging!

sketchup-ruby-debugger's People

Contributors

bfoz avatar birsoyo avatar bugrab avatar bugrabarin avatar discotroll65 avatar jimfoltz avatar salgue avatar seraku24 avatar thomthom avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.