Skip to content

Conversation

@gregg-miskelly
Copy link
Contributor

This checkin completes the external (and integrated) console work by updating the launch.json schema to add the new attributes. I also updated the documentation and templates.

This checkin completes the external (and integrated) console work by updating the launch.json schema to add the new attributes. I also updated the documentation and templates.
@gregg-miskelly
Copy link
Contributor Author

@caslan please review

@gregg-miskelly gregg-miskelly requested a review from caslan March 3, 2017 17:58
debugger.md Outdated
#####External console (terminal) window
The target process can optionally launch into a separate console window. You will want this if your console app takes console input (ex: Console.ReadLine). This can be enabled with:
#####Console (terminal) window
By default, processes are launched with their console output (stdout/stderr) going to the VS Code Debugger Console. This is useful for executables that take their input file files, the network, etc. But this does NOT work for applications that want to read from the console (ex: `Console.ReadLine`). For these applications, use a setting such as the following:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"input file files"?

debugger.md Outdated
"externalConsole": true
"console": "integratedTerminal"

When this is set to `integratedTerminal` the target process will run inside [VS Code's integrated terminal](https://code.visualstudio.com/docs/editor/integrated-terminal). Click the 'Terminal' tab in the tab group beneith the editor to interact with your application.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"beneath" the editor

debugger.md Outdated

When this is set to `integratedTerminal` the target process will run inside [VS Code's integrated terminal](https://code.visualstudio.com/docs/editor/integrated-terminal). Click the 'Terminal' tab in the tab group beneith the editor to interact with your application.

When this is set to `externalTerminal` the target process will run in a seperate terminal.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"separate"

"cwd": "${workspaceRoot}",
"stopAtEntry": false,
"externalConsole": false
"console": "internalConsole"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can go either way on this, but we might want to have 'integratedTerminal' as the default. The rationale being in the "console" launch configuration you are more likely interacting with an app that takes input. We can wait for community feedback on this too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I discussed this with Charlie offline. The problem is that the terminal will get hidden by the debug console by default, so it may not be very obvious where to go and interact with the application. So we will leave it this way for now.

@caslan
Copy link
Contributor

caslan commented Mar 3, 2017

@gregg-miskelly Looks good, a few typos

@gregg-miskelly gregg-miskelly merged commit 74ecafc into dotnet:master Mar 3, 2017
@gregg-miskelly gregg-miskelly deleted the ConsoleAttribute branch March 3, 2017 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants