-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug console: broken spacing #11321
Comments
@roblourens this was probably introduced by your PR. Do you want to look into to (I can also fix it tomorrow morning)? I think it is not a big issue, we just need to ignore the last '\n' when spliting lines To repro:
|
I debugged this and I see that every console.log in node produces an extra line - but the problem is that since the node adapter is listening to logs from stdout, there will be an extra newline at the end. e.g. -
So I assume we should just remove the last newline here https://github.com/Microsoft/vscode-node-debug/blob/master/src/node/nodeDebug.ts#L913 but I also see this line that explicitly adds a newline - do you want all OutputEvents to be newline-terminated? |
@roblourens @weinand since we are wrapping up the release I am fine with also filtering the last new line on the vscode since we were doing that previously. Though the right fix seems to be to handle this on the node debug side imho. Since 'hello' and 'hello\n' should produce different results on the vscode side. |
Console.prototype.log = function() {
this._stdout.write(util.format.apply(this, arguments) + '\n');
}; It is not node-debug that introduces any characters. VS Code should not modify the data received through the OutputEvents in any way. The best way to verify the behaviour of the debug console is to run a program that produced output both in the debug console and the integrated terminal. |
That is not a regression so I have created a seperate issue to track this #11376 |
Verified fix by building the latest from master. Here is the output for running tests in However, it's producing empty lines for strings much shorter than one line length, like for this line:
When the window is resized the problem is more severe. My guess is color code like Should I add |
@octref yes, please add the |
@octref Good guess |
Adding verified instead of @octref just to get this out of our 'to-verify' query today |
Sorry just see it here. Thanks for adding it. I'll open an issue when I'm in office. |
The line spacing has changed in the latest:
Here is the spacing in stable:
![2016-08-31_17-53-19](https://cloud.githubusercontent.com/assets/1898161/18135910/d1ac93b6-6fa3-11e6-96bc-acd45f0d5776.png)
The text was updated successfully, but these errors were encountered: