79485188

Date: 2025-03-05 00:39:23
Score: 1
Natty:
Report link

For a poor souls that are trying to find the way to print a single clickable line and not the whole stack trace:

let message = `Oh, hello there 👋`;
let functionName = `function`;
let path = `https://stackoverflow.com/questions/43666085/log-a-link-to-a-source-code-in-firefox-console`;
let line = 10;
let column = 20;

let error = new Error();
error.name = message;
error.stack = `${functionName}@${path}:${line}:${column}`;

console.log(error);

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kaneko Qt