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

[bug] kitty debugging window doesn't close when exiting process #2428

Open
k4lizen opened this issue Jul 16, 2024 · 1 comment
Open

[bug] kitty debugging window doesn't close when exiting process #2428

k4lizen opened this issue Jul 16, 2024 · 1 comment

Comments

@k4lizen
Copy link
Contributor

k4lizen commented Jul 16, 2024

This issue is in regards to debugging a process and context.terminal. When using tmux, one can do this:

context.terminal = "tmux splitw -h -l 65% -b".split()

to have the debug window be a split, be on the left, and have it be 65% of the total window size. In this case, closing the process window (i.e. pane in tmux terminology) (the nondebugging one), the debugger also gets closed automatically. This is really convenient as running debugging can happen quite often and manually closing the debugging window can take a few too many keystrokes. This also works properly in kitty when:

context.terminal = "kitty"

However, kitty doesn't natively support setting the window size with command line arguments (kovidgoyal/kitty#7634) (and having to do that manually is pain), so the workaround is...
--bias was added to kitty. Now the kitty equivalent of the tmux command is just:

context.terminal = "kitty @ launch --location=before --cwd=current --bias=65".split()

And from what I can observe, everything works properly except that exiting the process (for example ctrl+c) doesn't kill the debugging window.

@k4lizen
Copy link
Contributor Author

k4lizen commented Jul 20, 2024

That being said, with the previous solution (with the bash script, before --bias was added) when one exited gdb (via exit or Ctrl+D) it would continue off as a normal shell, but now exiting gdb kills the debugging window (and the process is stopped as well, which is the same as before). So its now possible to exit a "debugging session" with just Ctrl+D on gdb (whereas Ctrl+C on the process window (pane) works on tmux).

So I am now fairly content with the state of things (though figuring out the issue and making it more consistant across terminals would be nice).

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

1 participant