Code Monkey home page Code Monkey logo

bugbuzz-python's Introduction

Bugbuzz - easy to use online debugger

Build Status

Bugbuzz demo

Relative projects

Dashboard shortcuts

Vim style shortcuts

  • C Continue
  • H Return
  • J Next
  • L Step

Usage

pip install bugbuzz

then insert following lines in your code to debug

import bugbuzz; bugbuzz.set_trace()

Security concerns

As bugbuzz providing debugging in a software-as-service manner, all source code and local variables needed will be uploaded to the server. When a debugging session created, a random secret access key will be generated, and used for encryping all source code and local variables. The access key will be passed to dashboard as a part of hash tag like this

http://dashboard.bugbuzz.io/#/sessions/SECsLArhHBVHF5mrtvXHVp3T?access_key=<ACCESS KEY>

With the access key, the Ember.js dashboard app can then decrypt the source code and local variables downloaded from the server. As the access key is passed as part of hash in the URL, the server cannot see it, without the access key, your source code and local variables are not visible by the server.

For more details about security topic, you can also read my article Anonymous computing: Peer-to-peer encryption with Ember.js.

Run demo

To run our demo

git clone --recursive [email protected]:fangpenlin/bugbuzz-python.git

install the project

virtualenv --no-site-packages .env
source .env/bin/activate
pip install -e .

and dependency used in the demo.py

pip install requests

then

python demo.py

It will open a new tab in your browser for debugging.

Run with local API server and dashboard instead

By default, bugbuzz uses bugbuzz-api.herokuapp.com as the API server and dashboard.bugbuzz.io as the dashboard. To change this behavior, you can specify environment variables

  • BUGBUZZ_API: URL for the API server
  • BUGBUZZ_DASHBOARD: URL for the dashboard

For example, you are running API server and the dashboard locally at http://localhost:9090 and http://localhost:4200, then you can run bugbuzz like this

BUGBUZZ_API='http://localhost:9090' BUGBUZZ_DASHBOARD='http://localhost:4200' python demo.py

Notice

This is just a prototype, use it at your own risk

bugbuzz-python's People

Contributors

fangpenlin avatar asottile avatar

Watchers

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