Now that I'm solving problems on my own computer instead of in the Editor, I'm having a problem with console.log(). I'm trying to debug a function and have written some console.log() statements. For some reason that escapes me, I can't find the output of the console.log() statements in VSCode. I start the tests via corepack pnpm test in a Terminal and they execute but the console.log() output appears in neither the Terminal window nor the Output window. I can't think of anywhere else to look.
#Can't see console.log output in Visual Studio Code
6 messages · Page 1 of 1 (latest)
Which track? Did you look at the track docs?
Javascript. I'll check out the track docs and see if there's anything there about VSCode.
console.log statements are "swallowed" by the test runner (we did not write that). They should appear above the test runs in the terminal, but it's not great.
The online test runner is much better at tracking the logs next to the tests.
@misty lily I'd be fine with it being interspersed with the test run output but it's not appearing anywhere as far as I can see. I'm going to have to see if VSCode has a proper debugger where I can step/trace my code. That seems likely and it would be a better solution anyway,
It does. There is a forum topic about debugger js. If you search for it you may find it