tslog icon indicating copy to clipboard operation
tslog copied to clipboard

Stacktrace output from log.error not clickable in WebStorm console

Open dangnhdev opened this issue 2 years ago • 0 comments

I've tried TSLog for a while and pretty happy with it but I have noticed that when the error is logged using the log.error() method, the stack trace output in the WebStorm console is displayed, but I am unable to click on the file paths in the stack trace to navigate directly to the source code.

I have enabled sourceMap and inlineSourceMap in my tsconfig.json file, and the log output shows the correct line number in the source file. However, the file paths in the stack trace are still not clickable. Tried use {{fullFilePath}} but not work:

const log = new Logger({
        prettyErrorStackTemplate: "  • {{fileName}}\t{{method}}\n{{fullFilePath}}",
});

Is there a specific configuration or a workaround that I can use to make it work? Thank you for your help and for maintaining this great package!

dangnhdev avatar May 02 '23 02:05 dangnhdev