When debugging, vscode will not print output to terminal when print(..). I try to set "console": "externalTerminal",but it does not work, neither with "console": "IntegratedTerminal".
I figure out why this happends, since python will not print output until it meets newline. For example,
print("hello", end=" ") # will not output
print("world") # will output "hello world"