You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes when debugging I want to dump to console a pretty-printed object.
Normally in browser I'd use console.dir. In karma, this prints nothing, since dir is not listed here.
I can use console.dir but the output is an ugly non-readable one-liner.
So the scope of this issue would be to
enable logging for console.dir when captureConsole is true
enhance a stringifier to be whitespace-aware (behing the flag), and pass that flag to the stringifier when logging from console.dir.
maybe also change the depth in case of console.dir to be more than 3.
Would you be interested in receiving a PR with those changes?
The text was updated successfully, but these errors were encountered:
jakub-g
changed the title
Support console.dir for pretty-printed object dumps
Support console.dir for pretty-printed object dumps when captureConsole=true
Dec 21, 2015
Sometimes when debugging I want to dump to console a pretty-printed object.
Normally in browser I'd use
console.dir
. In karma, this prints nothing, sincedir
is not listed here.I can use
console.dir
but the output is an ugly non-readable one-liner.So the scope of this issue would be to
console.dir
whencaptureConsole
istrue
console.dir
.console.dir
to be more than3
.Would you be interested in receiving a PR with those changes?
The text was updated successfully, but these errors were encountered: