Giter Site home page Giter Site logo

elinorswery / tutorial-ruby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rookout/tutorial-ruby

0.0 0.0 0.0 209 KB

Rookout official tutorial for using Ruby

License: Apache License 2.0

Ruby 57.45% JavaScript 8.26% CoffeeScript 0.36% CSS 14.12% SCSS 0.30% HTML 18.09% Dockerfile 0.73% Makefile 0.68%

tutorial-ruby's Introduction

Rookout tutorial for debugging Ruby applictions

A sample app for debugging Ruby using Rookout.

Prerequisites

  1. ruby 2.7 or later.
  2. rails 6.0.0 or later

Setup

  1. CLone the sample app from this repository.
git clone https://github.com/Rookout/tutorial-ruby.git
cd tutorial-ruby
  1. Set your Rookout token as an environment variable (for Windows, use set instead of export)
export ROOKOUT_TOKEN=[Your Rookout Token]
  1. Run the app:
bundle install
rails server

the app will now run on https://localhost:3000/

Usage

  1. Log in to Rookout
  2. Select your tutorial-ruby server and add the source code.
  3. Open the file app/controllers/tasks_controller.rb and set a breakpoint in line 35.
  4. Browse to your localhost and add a todo item to the list.
  5. Come back to Roookout and check the bottom messages pane. You'll see the snapshot you just added, as it was triggered by the handler of the web api when you added a todo.

Want to learn more ?

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.