add debug information

closes https://github.com/segmentio/analytics.js/issues/281