1

I am writing an Angular app, with bit and pieces of JQuery plugins around the place.

Some of the logic is pretty complex and I'd like to have some debug logging that I can leave in the codebase that won't print out to the console in production.

What are people using to achieve this these days? I know Angular has its own logging but this logging needs to be across both the Angular stuff and the JQuery stuff. I can't rewrite the JQuery to be 'angularised'.

How can I best achieve this?

2 Answers 2

1

Maybe you can try chrome develop tools?

WIN: ctrl+shift+j

MAC: command+shift+j.

sources - > your script - > double click to add a breakpoint -> refresh

Here is a shortcut.

Sign up to request clarification or add additional context in comments.

Comments

1

Definitely breakpoints but you also need to check out

Batarang - chrome extension developed by angular team. I find it extremely useful for scope inheritance. It does crash now and then but it is still quite useful.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.