Home > Net >  Adding a preTask to launch.json command hides console output
Adding a preTask to launch.json command hides console output

Time:12-28

I want to debug a node process and before that I launch the build task. However, when I add

preLaunchTask": "npm: build:main",

I get the output of the task with the notification that I can press any key to close it. When I do close it, I do not get a terminal with the debugging output. presentation is not set in the launch.json command.

So I removed the task and launched again to see what happens. Now no terminal at all opens up and I still only have the default terminal.

Is this a bug or am I doing something wrong?

CodePudding user response:

Okay this answer fixes it. Adding this to the launch command shows the console again:

"console": "integratedTerminal",

It is weird that you need to specify the console implicitly in this case.

  • Related