Guide
Browser Console Logs for Bug Reports
To capture browser console logs for a bug, open the page’s Console before reproducing the problem. Keep messages across reloads when needed, repeat the failing action, and save only the relevant error and stack with the steps, time, and browser details. Review the text for private data before sharing it.
Last updated:
Fictional example: team-name save fails
This is a synthetic trace, not a customer log or a confirmed diagnosis.
Action and observation
In a test workspace on /settings/team, change the team name, then select Save. Expected: the new name appears after a reload. Observed: an error notice appears and the old name remains.
Example excerpt: 14:23:08 — TypeError: Cannot read properties of undefined (reading 'id') at saveTeam (settings-save.ts:84:12)
The time, message, and application file/line place this error near the failed save attempt. They do not prove that this frame caused the save failure; reproduce and inspect the save path before naming a cause.
Share the action, expected and observed results, browser/version, local time, and the reviewed message with its file/line. If the exact version or frequency is unknown, say so.
Collect reports on your own site with ContextCapture
ContextCapture adds a bug report widget to your website. Testers send a screenshot, their environment and their notes from the page, reports save to your inbox and, when the site’s destination is GitHub, open as issues in the repository you pick.
Use the same evidence habits on your own site: testers report from the live page, and each report saves to your inbox.
How do you capture console logs in Chrome?
- Open the affected page in desktop Chrome. Press Ctrl+Shift+J (Windows/Linux) or Command+Option+J (Mac) to open the Console panel.
- Open Console Settings and check Preserve log if the bug reloads or navigates. Clear unrelated older messages first when safe, then repeat the action.
- Check Log Levels for Error and Warning, and expand a relevant message to inspect its stack and file/line. Recheck the other levels and the selected JavaScript context before concluding a message is absent.
- Copy the relevant message for a small excerpt. For the current Console contents, right-click and choose Copy console or Save as… (.log). Inspect the copied or saved text before sharing it.
Chrome documents the controls in its Console features reference, including Preserve log, Log Levels, context filtering, and copy/save controls.
How do you capture console logs in Firefox?
- Open the affected page in desktop Firefox. Press Ctrl+Shift+K (Windows/Linux) or Command+Option+K (Mac) to open the page's Web Console.
- In the gear menu, enable Persist Logs if the bug reloads or navigates. Enable Show Timestamps if you need message times; they are hidden by default. Clear unrelated older messages, then repeat the action.
- Use category filters to locate Errors and Warnings, and expand a relevant message or trace. Record its source file/line when shown; recheck hidden categories before deciding no message appeared.
- Right-click a message and choose Copy Message for one excerpt. Export Visible Messages To → Clipboard or File saves only the messages currently shown. Review the export before attaching it.
Firefox documents opening the Web Console, its Persist Logs and Show Timestamps settings, and Copy Message and visible-message export.
If no relevant message appears
Check that the Console was open on the affected tab before the action. Clear a search filter, restore hidden message levels or categories, and check the selected context or frame. If the page navigates, enable the browser’s persistence setting before the next attempt. A blank Console does not show that the bug was absent; record the visible failure and continue with other evidence.
Trace the message back to the attempted action
In the synthetic save flow, first match the error time to the Save attempt. Expand its stack trace and keep the message plus the nearest useful file and line; Chrome’s Console reference explains that errors and warnings can show call frames. A frame points to code involved in the error, not necessarily the faulty line. If the same message also appears before Save, note that comparison instead of labeling it the cause.
When the Console contains only a network error, inspect the matching request in Network before reporting an HTTP status. A Console line alone may not tell whether the server responded. Record “no relevant Console message observed” if the unfiltered view remains empty after a repeat attempt.
Send the smallest reviewed excerpt
Include the action just before the failure, expected and actual results, browser and version, local time of the attempt, and the message with file/line when shown. If the issue is intermittent, record the number of attempts. Filters help find a message, but revisit the unfiltered Console before concluding what else appeared. Firefox’s “Export Visible Messages To” includes only the currently visible pane; a full saved log may include unrelated history.
Review the text and any saved file for names, email addresses, form values, tokens, cookies, and private URLs. Replace sensitive values with clear labels, then reread the excerpt. Do not dismiss a third-party message solely because of its source; decide relevance from its timing, context, and relationship to the observed action.
Add the console evidence to a bug report
Put the reviewed message beside reproduction stepsand expected versus actual behavior in the bug-report generator. The sample report shows a broader handoff. A Console error records what the page emitted; it does not capture a complete request timeline. For a network question, inspect a separate recording with the HAR analyzer, then use the HAR sanitizer and review its retained fields before sharing.
Updated October 21, 2026. Method: browser controls and export labels above follow the linked Chrome and Firefox documentation; the save-flow trace is fictional.
Examples for your team
Builder example
A builder clears earlier console noise, repeats a failed save, and copies the error that appears at the moment of failure.
Start your 14-day free trialAgency / QA example
A QA tester notes the browser and test steps, captures the relevant error, and removes client details before handoff.
Start your 14-day free trial