Closed WietseWind closed 1 year ago
Changed it to:
People are used to looking at the line number at the extreme right(where it says work.js:125). So I am thinking of specifying the line number separately. But for most apps which use reactjs or angular or vue, the Javascript is usually minified, so the line number will always be 1.
Shall I just output the console log without the labels: file, line no and message? And simply output the actual file url +" "+ line no +" "+ message.
Yeah let's do that, but then message should only be concatenated if typeof is string, otherwise it should be a second param in the console.log, so it'll show as a real collapsable object if object.
Perfect :) (Maybe "Line:" in front of the 1 and only add the line if > 1?)
Done. 👍
Currently console logs from the inner app look like this:
Remove the JSON formatting, keep File & Line No and message, but as string + string + object: