Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Disabling console.debug.wordWrap strips newlines and whitespace #83753
Steps to Reproduce:
Does this issue occur when all extensions are disabled?
I see this behaviour with the Python extension as well so it seems more general than ASP.NET.
Here's a minimal example case, set a breakpoint where indicated and debug to reproduce:
string_to_print = ' this is a string to print' print( string_to_print ) print('set breakpoint here')
'Debug Console' output is:
while 'Terminal' output is correct:
I don't think this is specifically an issue with 'debug.console.wordWrap' since it occurs regardless of the value of that setting.
VSCode: Version: 1.40.0
Unfortunately it makes debugging numerical code nearly impossible since numpy arrays all print as a single line, regardless of dimension and number of elements. Ironically the debug.console.wordWrap feature is why I upgraded to get unwrapped printing of large arrays.
Cheers and thanks for all your work on this great tool!
@jamesgregson thanks for the nice steps. I have pushed the fix to vscode insiders and you can try out in tomorrow's vscode build.