• Stars
    star
    103
  • Rank 331,331 (Top 7 %)
  • Language
    Python
  • License
    MIT License
  • Created over 9 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Fall in love with debugging

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

More Repositories

1

avataaars-generator

Simple generator React app for avataaars
TypeScript
2,783
star
2

avataaars

React component for avataaars
TypeScript
750
star
3

loso

Chinese segmentation library
Python
83
star
4

elliptic-curve-explained

Jupyter notebook for explaining elliptic curve encryption
Jupyter Notebook
82
star
5

ansible-docker-demo

A simple ansible project for demonstrating how to build a docker image
Shell
46
star
6

gluttony

Gluttony is a tool for finding dependency relationships among Python packages, it is based on pip.
Python
23
star
7

swiftsense

JavaScript
17
star
8

ansible-inside-docker-demo

This repo demonstrates how to pack an Ansible playbook into a docker image
Shell
16
star
9

open-doodles

Open Doodles
TypeScript
12
star
10

framework-playbook

Ansible Playbook for Framework laptop basic setup
12
star
11

crane

Dockerfile builder
Python
11
star
12

eth2-validator-helm

Helm Chart for running ETH2 validator with OpenEthereum + Lighthouse
Mustache
10
star
13

Proj4Swift

Proj.4 wrapper in Swift 2 language
Swift
9
star
14

docker-eb-demo

An example demonstrates how to run a Docker app with AWS Elastic Beanstalk
Python
9
star
15

todoist-location-labels

Todoist service for adding location reminder for specific label
HTML
8
star
16

pyramid-handy

Some handy stuff for Pyramid web framework
Python
2
star
17

pyramid_genshi

Python
2
star
18

bugbuzz-dashboard

Dashboard for bugbuzz
JavaScript
2
star
19

billy-client

Python
2
star
20

rocket-launcher

Cookiecutter template project for production ready Flask web app
Python
2
star
21

GreenCloud

Python
1
star
22

design-patterns

Design patterns for Python
Python
1
star
23

rocket-launcher-sampleapp

Sample app generated from rocket-launcher project template
Python
1
star
24

python-hge

C++
1
star
25

docker-kill-different-user-process-bug

A docker image for reproducing not "Operation not permitted" to kill different user bug
Shell
1
star
26

billy-chef

Chef code for Billy integration testing and deployment
Ruby
1
star