Console.error
HTML CSS JavaScript Graphics HTTP APIs / DOM Apps MathML References & Guides Learn the Web Tutorials References Developer Guides Accessibility Game development ...more docs Mozilla Docs Add-ons Firefox WebExtensions Developer ToolsFeedback Get Firefox help Get web development help Join the MDN community Report a content problem Report a bug Search Search Languages Français (fr) 日本語 (ja) Português (do Brasil) (pt-BR) Add a translation Edit Advanced Advanced History Print this article MDN Web technology For developers Web APIs Console Console.error() Your Search Results mrenty sergeyklay Sebastianz chrisdavidmills teoli Sheppy Havvy kscarfone Khodaidad_Basharmand ethertank Morgul myakura Console.error() In This Article SyntaxParametersSpecificationsBrowser compatibilitySee also Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. Outputs an error message to the Web Console. Note: This feature is available in Web Workers. Syntax console.error(obj1 [, obj2, ..., objN]); console.error(msg [, subst1, ..., substN]); console.exception(obj1 [, obj2, ..., objN]); console.exception(msg [, subst1, ..., substN]); Note: console.exception() is an alias for console.error(); they are functionally identical. Parameters obj1 ... objN A list of JavaScript objects to output. The string representations of each of these objects are appended together in the order listed and output. msg A JavaScript string containing zero or more substitution strings. subst1 ... substN JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output. See Outputting text to the console in the documentation of console for details. Specifications Specification Status Comment Console APIThe definition of 'console.error()' in that specification. Editor's Draft Initial definition Browser compatibility Desktop Mobile Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari Basic support (Yes) 4.0 (2.0) 8 (Yes) (Yes) Substitution strings (Yes) 9.0 (9.0) ? ? ? console.exception alias Not supported 28.0 (28.0) Not supported Not supported Not supported Available in w
Line ShortcutsSetup Browser ExtensionsSetup Your Build ToolsChrome DevToolsOverviewConfigure and Customize DevToolsDebug Progressive Web AppsUnderstand Security IssuesInspect and Edit Pages and StylesOverviewEdit StylesInspect AnimationsEdit the DOMKeyboard and UI Shortcuts ReferenceInspect and Manage Storage, Caches, and ResourcesInspect and Manage Storage, Databases, and CachesInspect and Delete CookiesInspect ResourcesSimulate Mobile Devices with Device ModeOverviewTest Responsive and https://developer.mozilla.org/en-US/docs/Web/API/Console/error Device-Specific ViewportsEmulate Geolocation and Accelerometer SensorsEmulate and Test Other BrowsersRemote Debugging Android DevicesOverviewAccess Local ServersRemote Debugging WebViewsInspect and Debug JavaScriptSet BreakpointsStep Through CodeRun Snippets of Code From Any PagePretty-Print Minified JavaScriptWatch Variables in SourcesMap Preprocessed Code to Source CodeUsing the ConsoleOverviewDiagnose and https://developers.google.com/web/tools/chrome-devtools/debug/console/console-reference?hl=en Log to the ConsoleCompare Similar Data ObjectsMeasure and Count ExecutionsHandle Exceptions and ErrorsConsole API ReferenceEvaluate ExpressionsMonitor EventsCommand Line ReferenceHow to Look at PerformanceHow to Use the Timeline ToolTimeline Event ReferenceAnalyze Runtime PerformanceOverviewSpeed Up JavaScript ExecutionDiagnose Forced Synchronous LayoutsMeasure Network PerformanceMeasure Resource Loading TimesUnderstand Resource TimingOptimize Performance Under Varying Network ConditionsFix Memory ProblemsOverviewUnderstand Memory TerminologyRecord Heap SnapshotsUse the Allocation ProfilerExtend the Chrome DevToolsIntegrating with DevTools and ChromeDevTools Extensions APIDebugger ProtocolLighthouseService Worker LibrariesWeb Starter KitPolymer Starter Kit Join the Progressive Web App Road ShowStopping in New York, Chicago, Austin, Toronto, Mountain View and Seattle. Learn more and sign up now. Getting StartedOverviewSetup Your EditorSetup Persistence with DevTools WorkspacesSetup CSS & JS PreprocessorsSetup Command Line ShortcutsSetup Browser ExtensionsSetup Your Build ToolsChrome DevToolsOverviewConfigure and Customize DevToolsDebug Pr
in case the Console panel option Show Stack Trace With Errors is enabled. Contents 1 https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors Syntax 2 Parameters 2.1 object 3 Examples 4 See also Syntax[edit] console.error(object[, object, ...]) Parameters[edit] object[edit] Object to output in the console. This can be any kind of object. The first argument to log may be a string containing printf-like string substitution patterns. The complete list of patterns can be seen at console.log. Examples[edit] console.error("This is some error message."); This prints This is some error message. to the console. See also[edit] Console.log Console.debug Console.info Console.warn Console API Retrieved from "https://getfirebug.com/wiki/index.php?title=Console.error&oldid=8276" Categories: FirebugUIAPI Navigation menu Personal tools Log in Namespaces Page Discussion Variants Views Read Edit View history More Search Main Main pageFirebug.nextFAQShortcutsPreferencesRelease NotesLinks Panels Console PanelHTML PanelCSS PanelScript PanelDOM PanelNet PanelCookies Panel Extensions All ExtensionsCreate ExtensionsArchitectureSwarms Get Involved Report BugsCreate Enhancement RequestsView SourceTestingBecome a ContributorWorking GroupRoadmap Wiki Community portalCurrent eventsRecent changesRandom pageHelp Tools What links hereRelated changesSpecial pagesPrintable versionPermanent linkPage information This page was last modified on 21 November 2013, at 17:09. Privacy policy About FirebugWiki Disclaimers
the new WordPress Code Reference! Using Your Browser to Diagnose JavaScript Errors If you're experiencing issues with your interactive functionality this may be due to JavaScript errors or conflicts. For example, your flyout menus may be broken, your metaboxes don't drag, or your add media buttons aren't working. In order to formulate your support request it helps the team to know what the JavaScript error is. This guide will show you how to diagnose JavaScript issues in different browsers. Contents 1 Step 1: Try Another Browser 2 Step 2: Enable SCRIPT_DEBUG 3 Step 3: Diagnosis 3.1 Firefox 3.2 Internet Explorer 3.3 Chrome 3.4 Safari 3.5 Opera 4 Step 4: Reporting Step 1: Try Another Browser To make sure that this is a JavaScript error, and not a browser error, first of all try opening your site in another browser. if the site is not having the same issue in the new browser you know that the error is browser specific if the site is having the same error it is not an error that is specific to one browser Make note of any browsers you are experiencing the error in. You can use this information when you are making a support request. Step 2: Enable SCRIPT_DEBUG You need to turn on script debugging. Open wp-config.php and add the following line before "That's all, stop editing! Happy blogging". define('SCRIPT_DEBUG', true); Check to see if you are still having an issue. Issue is fixed - turn off script debugging and report the issue on the support forum, telling the volunteers that you turned on script debugging and it solved the problem. Issue persists - proceed to Step 3. Step 3: Diagnosis Now that you know which browsers you are experiencing issues in you can start to diagnose the issue. Firefox 1. Open the Console Go to the screen where you are experiencing the error. In Firefox, navigate to Tools > Web Developer > Error Console or press Ctrl + Shift + J. 2. Identify the Error The error console will open. If you don't see any errors try reloading the page. The error may be generated when the page loads. The console will provide you with the error type, the location of the