Inspector console doesn't always show newlines in Atom 1.5.2?


#1

I’m using Atom’s build in web inspector a lot for debugging my specs. Often I’ll want to print out a string, by just typing a variable name. But when I do this I don’t see any newlines in the string. On the other hand if I use console.log I do see newlines:

Is this intended behavior? Is there a simple way to print out a string (with newlines included) without having to type out “console.log”?

Thanks!


#2

I suspect that this is because Atom is a few versions behind Electron which is a couple versions behind Chromium. If you build Atom from source, you could apply this PR and see if that fixes it: