Skip to content
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

Launch in a separate terminal window #28

Closed
WebFreak001 opened this issue Feb 23, 2016 · 5 comments
Closed

Launch in a separate terminal window #28

WebFreak001 opened this issue Feb 23, 2016 · 5 comments
Assignees

Comments

@WebFreak001
Copy link
Owner

See #26

@JanKok
Copy link

JanKok commented Mar 7, 2016

Thanks for providing this feature. I have a couple of problems with it.

  1. The first line of the new terminal window displays: &"warning: GDB: Failed to set controlling terminal: Operation not permitted\n". The terminal window basically works, though. My program can read and write to it.
  2. Each time I start my program in Code, I get a new terminal window. The old one isn't closed or reused. Maybe there should be some options to control what happens to the previous terminal.

@WebFreak001
Copy link
Owner Author

  1. thats something to do with your OS. For example on linux mint i had that issue too but on arch I don't have it anymore. Need to look into those permission things.
  2. I didn't find a way to close it automatically because GDB doesn't send any signal to it. I can maybe manually hold a reference to the console and close it then

@LaurentTreguier
Copy link

I don't know if reviving an old issue is a good idea, but I'm having the exact same problems as @JanKok and I've noticed that Microsoft's cpptools extension manages to somehow work them out. It finds out the default terminal, doesn't display this first line and closes it when the program ends... I have no idea how they are doing it though.

@WebFreak001
Copy link
Owner Author

Hm I can probably also make it close when gdb stops because I can just hold a reference to the PID of the terminal. But I would have no idea how to fix that first line

@LaurentTreguier
Copy link

I just tried looking into cpptools' code to see if I could get something out of it, but it looks like they use a bunch of precompiled dll's and binaries bundled with the extension...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants