You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Disabling console.debug.wordWrap strips newlines and whitespace #83753
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issueson-release-notesIssue/pull request mentioned in release notesverifiedVerification succeeded
Expected Behavior:
The debug console stops automatically inserting linebreaks to fit messages to screen width.
The debug console does not remove linebreaks and any other white-space that may already be present in the log messages.
Actual Behavior:
It just strips everything, including what was already present in the log messages itself.
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!
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issueson-release-notesIssue/pull request mentioned in release notesverifiedVerification succeeded
Activity
jamesgregson commentedon Nov 7, 2019
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:
'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
Commit: 86405ea
Python: 3.5.2
Ubuntu 16.04
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!
isidorn commentedon Nov 20, 2019
jamesgregson thanks for the nice steps. I have pushed the fix to vscode insiders and you can try out in tomorrow's vscode build.
To verify,
debug.console.wordWrap:falseand debug the following nodejs program and make sure the string is correctly rendered in the debug console