debug

A drop-in debug module for AngularJS

Added by: Sam Deering

GitHub

Repository

ng2/debug

Stats

Stars: 1

Watchers: 1

Forks: 0

Author

Ng2
Ng2

Module Description

debug

A drop-in debug module for AngularJS

Installation

component install ng2/debug

Then require it in your index.html and add it as a dependency:

require('ng2-debug');
//...
angular.module('myApp',['ng2Debug']);

And configure any of the debuggers in your .config block.

.config( function(DebugEventsProvider) {
  DebugEventsProvider.setVerbosityLevel('vv');
});

Debuggers

At the moment it only has an event debugger but:

  • All debuggers have disabled output by default.
  • All debuggers hvae no filters by default.

Usage

It exposes just one function at the moment: setVerbosityLevel.

setVerbosityLevel ( string )

Sets the verbosity level from '' (empty string) off, to 'vvv' (most verbose).

setFilter ( string, opts )

Filters the output by creating a RegExp object with string and opts. opts defaults to 'ig'

Bitdeli Badge

Module stats last updated: 2015-04-15 19:37:14

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!