-
Notifications
You must be signed in to change notification settings - Fork 229
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
Finding terminal size for remote debugging #485
Comments
I should preface this by saying that getting terminal sizes for remote pudb is not an actually solvable problem, AFAICT. All that we have is heuristics. This is the current edition of that heuristic: Lines 208 to 214 in 9c8a140
At the very least, you can simply pass in the terminal size, and it'll use that. Or maybe you'll be able to help determine why the heuristic fails in your use case and what about it could be improved. |
I'm actually a bit confused about this heuristic. It looks like it will grab the size of the terminal in which the program is executing, but if we're using remote debugging won't the |
Yep, that's the assumption. The idea behind the heuristic is that you have both running in two tabs of the same terminal. |
ahhh okay thank you. |
* Move management of current debuggers into Debugger class * Move term_size heuristic to RemoteDebugger constructor, document better (gh-485) * Fix post-mortem debugging for Py3 * Remove unexplained stack-eating loop from post_mortem * add debug_remote_on_single_rank * flake8 * better doc * a bit more text * add an mpi4py example * allow arguments to func, better doc, simplify * clarify comment * more doc * clarify comment * add missing args Co-authored-by: Andreas Kloeckner <[email protected]>
Back a few months ago (March/April 2021 time frame) I used to use PUDB debugger, and it would fit itself to the size of my terminal window. Now I am finding it will only display 25 lines by 80 columns. I have tried different $TERM values, but it doesn't change what I get.
This is a remote connection (ssh to remote system). I have tried this in a "tmux" session as well as a regular ssh session under Gnome-terminal and xterm. Tested with $TERM unset, as well as xterm-256color, xterm, gnome, linux, and screen-256color (tmux automatically sets $TERM=screen).
I don't have a simplified script to sun as a test, so the only option I have to try this is a full Tempest testcase, and I have to just close the terminal window so that I don't have to wait for the full testcase to run.
I'm presuming pudb must have a preferred terminal type. I also uninstalled pudb along with it's dependencies and reinstalled.
The text was updated successfully, but these errors were encountered: