-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Visual C++] Hold console window open after program termination #1004
Comments
If you want us to launch your app and then pause, you can enable Otherwise this will be a feature request. |
I am aware of that flag… but it's not the behavior I'm looking for. I
really just want to see the output of my application after it exits when
running in debug mode. I think this *is* a feature request, though I was
hoping maybe it was an undocumented feature or one with a workaround.
I suppose alternatively, if this ran in the integrated debugger, presumably
it's buffer would stick around. But there are already a couple issues open
for that.
…On Aug 30, 2017 4:13 PM, "Pierson Lee" ***@***.***> wrote:
If you want us to launch your app and then pause, you can enable
stopAtEntry to be true and we will stop at the first line of the main()
method.
Otherwise this will be a feature request.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1004 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAT9dL2L4cI1DzBnqcGwV9eTWJRQlvY1ks5sdeyZgaJpZM4PGmTq>
.
|
In particular, I was hoping there was some way I could trick the whole
thing into just executing the debugger command but also running `pause`
afterward somehow. Or something similar. Alternatively, if it's an easy
contribution here I could try to add it.
Thanks!
…On Aug 30, 2017 4:20 PM, "Cole Mickens" ***@***.***> wrote:
I am aware of that flag… but it's not the behavior I'm looking for. I
really just want to see the output of my application after it exits when
running in debug mode. I think this *is* a feature request, though I was
hoping maybe it was an undocumented feature or one with a workaround.
I suppose alternatively, if this ran in the integrated debugger, presumably
it's buffer would stick around. But there are already a couple issues open
for that.
On Aug 30, 2017 4:13 PM, "Pierson Lee" ***@***.***> wrote:
> If you want us to launch your app and then pause, you can enable
> stopAtEntry to be true and we will stop at the first line of the main()
> method.
>
> Otherwise this will be a feature request.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#1004
issuecomment-326144718>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
AAT9dL2L4cI1DzBnqcGwV9eTWJRQlvY1ks5sdeyZgaJpZM4PGmTq>
> .
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1004 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAT9dG8V0OkxcDD9s0J5u3shvjZ1lCAsks5sde4pgaJpZM4PGmTq>
.
|
For Visual C++ we can look at doing it but since the console showing the output is child process of the debugger and when you stop debugging, the debugger exits, this might not be something we can solve. One of the items on our backlog is to output the text to the debug console in VSCode.
Unfortunately the Visual C++ debugger itself is not open source but thanks for the offer! |
I have also the same problem but using cin.get() i was able to pause the console output screen and press ctrl + C to exit the output screen. But there should be a way to attach this command to launch.json |
I'm not debugging C and I need to be able to debug exceptional program exits, so the various tricks all over StackOverflow are not applicable. All I've found are confusing, unexplained answers that involve what look to be a VS specific switch (that I wouldn't know how to use otherwise). Is there no other workaround? Even if I could just get it redirected to a file, I would at least not be blocked. How are people using the C++ debugger effectively with this serious of a limitation? (edited briefly to fix a couple of minor typos) |
I have the same problem, need features like Ctrl+F5 run features like Visual studio. |
* Add placeholder AdapterArgs for OpenDebugAD7 in VS
I want to debug my application, but it takes a lot of flags. I'm missing one of those flags in
launch.json
. However, when I start debugging with cppvsdbg, then I can't see the error message when debugging because it just terminates before I can see the error message. Some helper function in a library down inside is calling os exit, so it's not easy for me to just set a breakpoint at the bottom of my program.Would it be possible to have the debugger launch
myapplication & pause
or something so that I can see stdout?The text was updated successfully, but these errors were encountered: