Supporting console statements with proper line numbers
This is a wonderful little project, and we use it over at ts-jest - it would be wonderful to not only get correct line numbers in stacktraces, but also in console.log statements, to allow for print-debugging.
Are there any chances this project could grow to support something like that?
I'm not entirely sure on what the problem is, console.log doesn't do anything with the line number as far as I'm aware?
When printing things, usually chrome (or in my specific case, Jest) shows the line number where it was printed from - I'm not sure if it's patchable, or an issue I need to go to the jest repo with.
~~This would be a great feature! In my case, I use console.dir to print Errors, for example:~~
try {
throw new Error();
} catch (e) {
console.error("Error occurred! Details:");
console.dir(e);
}
Oops, I misconfigured my sourcemap generator. What I asked for actually works.