Better console logging ionic devapp


#1

I am trying to use ionic devapp for fast debugging but I have two problems

ionic serve -c

1- Console logs for objects are not viewable
2- no mapping for the line where log happes
What am I missing?
image


#2

It’d be nice to have “inspectable” objects in the DevApp log like you do with web developer tools, although I’m not sure this is feasible via the terminal interface.

In the meantime, a workaround for quickly logging simple objects is JSON.stringify():

console.log(JSON.stringify(obj))

// {"prop1": "value", "prop2": false, "prop3": ["an", "array"], "prop4": {"name": "nested object"}}