Giter Site home page Giter Site logo

waterbug's Introduction

WaterBug

WaterBug is an attempt to build a javascript-based debugging tool for all browsers.

Inspiration

WaterBug was inspired by FireBug, the best ever debug tool. FireBug's developed as an addon to Firefox which makes it unaccessible for other browsers. WaterBug's idea is to make a tool that is browser-independent.

History

First attempt can be found here.

Its three problems were:

  • dependency on Prototype javascript framework
  • low efficiency
  • unclear code

The new tool shoud fix all the problems.

Current state

Currently WaterBug is in an early development state. New modules will be added periodically as the previous ones become stable and satisfactionary.

I'd appreciate if anyone wanted to contribute by building new modules.

For details please reffer to the latest stable version.

Latest stable version

Current version is stable_1.00.

This version provides a fully functional javascript console and error handling.

Thested with:

  • IE6
  • IE7
  • IE8
  • OSX Chrome
  • OSX Firefox

In IE6 the main container styles will be broken because it doesn't support position:fixed. The functionality is usable however.

Development

Simply run ruby generate.rb. The script generates files into the generated/ directory.

Please see the coding guidelines here.

Usage

The examples below explain how to use version stable_1.00.

To use other versions just replace stable_1.00 with the branch or tag you want to use.

To use WaterBug you have to either:

  • include it in your website's header:

    <script type="text/javascript" src="http://github.com/szarski/WaterBug/raw/stable_1.00/generated/waterbug.js"></script>
    
  • dynamically ad it by issuing this code:

    node = document.createElement('script');
    node.type = 'text/javascript';
    node.src = document.location.protocol+'//github.com/szarski/WaterBug/raw/stable_1.00/generated/waterbug.js';
    document.getElementsByTagName("head")[0].appendChild(node);
    
  • just insert this into the url once the page is loaded:

    javascript:node = document.createElement('script');node.type = 'text/javascript';node.src = document.location.protocol+'//github.com/szarski/WaterBug/raw/stable_1.00/generated/waterbug.js';document.getElementsByTagName("head")[0].appendChild(node);alert('WaterBug loaded!');
    

Please note that only the first option will allow you to catch exceptions that appear when the page is being loaded.

License

Copyright (c) 2010 Jacek Szarski

[email protected]

Released under the GPL license.

ToDo

  • improve IE6 css related to positioning elements

waterbug's People

Contributors

szarski avatar

Stargazers

Steven Beller avatar  avatar Marcin Olichwirowicz avatar Mariusz Lusiak avatar Michał Taszycki avatar Gimi Liang avatar Tuan Kuranes avatar  avatar Dominik Fijaś avatar Mateusz Zawisza avatar  avatar Basia Madej-Romaniuk avatar Marcin Bunsch avatar Nelson Yee avatar Sven Fuchs avatar

Watchers

James Cloos avatar

Forkers

malcthom

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.