-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Text is truncated when launching external terminal on OSX in debugger #38578
Comments
@DonJayamanne if you run VS Code from source and want to use the node debugger, just copy the 2 extensions from your Insiders release into the extension folder |
We have the similar issue here. @weinand Is there any update? Thanks in advance for your help. |
I see the similar issue on VS Code 1.43.2 on Mac OSX Mojave but with the My default shell is Steps to reproduce:
|
I have introduced a 1 second delay before using a newly created external terminal. This gives the shell running inside the terminal more time initialise itself. |
Steps to Reproduce:
extensions
directoryRunWithoutDebug
print("1234")
Show me the code
The code used to send the request to VS Code can be found here (using
runInTerminalRequest
):Here you can see that I'm copying all env variables from current process into a variable (which could be deemed unnecessary -technical debt).
If I were to comment this line of code, then launching in the external terminal works as expected.
Observations:
On windows, this works as expected (a terminal is a launched and code is executed with breakpoints).
On a Mac (Sierra), a terminal window is launched, however you can see that not all of the text is in the command prompt. As only part of the text is printed out into the terminal window nothing gets executed, hence the debugger just hangs.
The integrated terminal option works on both Windows and Mac.
I think the problem is there's too much information being dumped into the terminal.
Currently i'm copying all environment variables from the process and passing this into the command (i.e. too many env variables to be set in the terminal).
Output from external and integrated terminals (text truncation can be seen):
Here's a copy of the text in the
external
terminal (on Mac OS):If I try debugging using the integrated terminal, it works and here's the text that gets sent to the integrated terminal (lot more information):
Note:
I have tried debugging vscode from source, unfortunately I don't know how to get the vscode node debugger in there. I get some error about debug type
node
not being supported. Hence couldn't get anywhere with this.When reverting to my old code (launching the external terminal using my own code), it works. Here's the old code https://github.com/DonJayamanne/pythonVSCode/blob/master/src/client/common/open.ts
The text was updated successfully, but these errors were encountered: