We do this in WebCore when enabling the system console logging. We should do this for exceptions as well. I did not include the backtrace of the exception, but we could add that if we want to.
<rdar://problem/16529729>
Created attachment 228620 [details] [PATCH] Proposed Fix
Comment on attachment 228620 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=228620&action=review > Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.cpp:162 > + ConsoleClient::printConsoleMessage(MessageSource::JS, MessageType::Log, MessageLevel::Error, errorMessage, callFrame.sourceURL(), callFrame.lineNumber(), callFrame.columnNumber()); Would be good to print the whole stack by passing in callStack and treating it like a console.trace.
Comment on attachment 228620 [details] [PATCH] Proposed Fix Clearing flags on attachment: 228620 Committed r166816: <http://trac.webkit.org/changeset/166816>
All reviewed patches have been landed. Closing bug.