Giter Club home page Giter Club logo

zbs-torch's Introduction

You no longer need this fork to use torch in zerobranestudio. The above link shows full integration with Torch.

DEPRECEATED.

Project Description

ZBS-torch is a fork of ZeroBrane Studio to get it to work with Torch-7

For an overview of ZeroBrane Studio, see README-zbs

  • Written in Lua, so easily customizable.
  • Small, portable, and cross-platform (Windows, Mac OSX, and Linux).
  • Auto-completion for functions, keywords, and custom APIs.
  • Interactive console to directly test code snippets with local and remote execution.
  • Integrated debugger with local and remote debugging for Lua 5.1, Lua 5.2, Lua 5.3, LuaJIT, and other Lua engines.
  • Live coding with Lua, LÖVE, Gideros, Moai, Corona SDK, GSL-shell, and other engines.
  • Function outline.
  • Fuzzy search with Go To File, project-wide Go To Symbol, and Insert Library Function.
  • Several ways to extend the current functionality:
    • specs (spec/): specifications for file syntax, lexer, and keywords;
    • apis (api/): descriptions for code completion and tooltips;
    • interpreters (interpreters/): components for setting debugging and run-time project environment;
    • packages (packages/): plugins that provide additional functionality;
    • config (cfg/): settings for styles, color themes, and other preferences;
    • translations (cfg/i18n/): translations of the menus and messages to other languages;
    • tools (tools/): additional tools.

Installation

=======

  • Get Torch

  • Install mobdebug with luarocks with

$ luarocks install mobdebug
$ git clone https://github.com/soumith/zbs-torch.git
$ cd zbs-torch
$ ./zbstudio.sh

Usage

To debug a torch file,

  • Start zbs from the zbs-torch directory with the command
$ ./zbstudio.sh
  • Start the debugger server from "Project->Start Debugger Server"

  • Change the interpreter to Torch-7 "Project->Lua Interpreter->Torch-7"

  • Add the following line to the top of the file you are debugging

require('mobdebug').start()

For Example, this file

require 'image'
print('Wheres Waldo?')
a=image.rotate(image.lena(), 1.0)
image.display(a)
print('OK Bye')

becomes

require('mobdebug').start()
require 'image'
print('Wheres Waldo?')
a=image.rotate(image.lena(), 1.0)
image.display(a)
print('OK Bye')
  • Run the file from the menu "Project->Run"
  • You should see the debugger stop at the first line of the file, then you can set breakpoints, continue, step etc.

Original Author

ZeroBrane Studio and MobDebug

ZeroBrane LLC: Paul Kulchenko ([email protected])

License

See LICENSE.

zbs-torch's People

Contributors

pkulchenko avatar pixeljetstream avatar soumith avatar kodemeister avatar bartoleo avatar yonaba avatar mrichards42 avatar nickchops avatar rm-code avatar koraykv avatar pi avatar crumblingstatue avatar tiwb avatar dkulchenko avatar vivanov879 avatar tmiv avatar sclark39 avatar samehkhamis avatar madmaxoft avatar lileicc avatar kikito avatar sience avatar mkottman avatar odie avatar johnmellor avatar dbaileychess avatar davidxifeng avatar ionoclastbrigham avatar aripakman avatar ardje avatar

Watchers

James Cloos avatar sunshihua 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.