question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I use debug in the browser with AngularJS and Bower?

See original GitHub issue

Hello,

Is there a tutorial on how to use it in the browser with AngularJS? window.myDebug = require("debug"); does not work for me since I do not use the npm package management in the browser, I use bower for that.

I managed to make it work fine in the nodejs backend.

Thank you!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
nmccreadycommented, Sep 23, 2015

plunkr here http://plnkr.co/edit/C4PcSxUhLKywBzuKUqLu?p=preview wow, this should be in the Readme.md

0reactions
ndraimancommented, Jun 7, 2016

@nmccready Thank you. made me realize that the npmjs version isn’t what i need for the browser, simply took the file from this repo’s dist folder and followed your plunker.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I use debug in the browser with AngularJS and Bower?
Hello,. Is there a tutorial on how to use it in the browser with AngularJS? window.myDebug = require("debug"); does not work for me...
Read more >
Bower (bower_components) item missing in browser but ...
I'm trying to debug a really bizarre issue. As part of the build process on a project I'm working on, a bower_components folder...
Read more >
TypeScript, AngularJS, Gulp and Bower in Visual Studio 2015
We will use Gulp to process all the JavaScript and CSS files required to run on the client side. We 'll do all...
Read more >
A Step-by-Step Tutorial for Your First AngularJS App - Toptal
In this AngularJS tutorial, you will learn how to build an Angular app from start to finish, and see some examples of its...
Read more >
Debug JavaScript in Chrome | WebStorm Documentation
Debug an application that is running on the localhost in the development mode · Set the breakpoints in your code. · Start the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found