debug 1.0.0 copy "debug: ^1.0.0" to clipboard
debug: ^1.0.0 copied to clipboard

This is something of a clone/work-alike of the JavaScript debug package by TJ Holowaychuck at https://github.com/visionmedia/debug. Use: import 'package:debug/debug.dart'; final debug = Debug('any [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add debug

With Flutter:

 $ flutter pub add debug

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  debug: ^1.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:debug/debug.dart';
1
likes
110
pub points
27%
popularity

Publisher

unverified uploader

This is something of a clone/work-alike of the JavaScript debug package by TJ Holowaychuck at https://github.com/visionmedia/debug. Use: import 'package:debug/debug.dart'; final debug = Debug('any_key_you_like') ... debug('any string you like, as if you called print()'); The DEBUG environment variable is checked to see if anything should be printed. You can specify multiple keys in DEBUG by separating them with semicolon. The * key matches ALL keys for all debugs. This package was developed as part of a port of Modus Create's IoT platform, RoboDomo from JavaScript to Dart and Flutter. The original can be found at https://github.com/RoboDomo.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dart_console, env_get

More

Packages that depend on debug