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

auto resize of output window makes this debugger unusable for my project #286

Open
mark4th opened this issue Jan 4, 2025 · 11 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@mark4th
Copy link

mark4th commented Jan 4, 2025

I have created a curses library that allows for moveable, overlapping windows in a console. With this library I am developing an 8051 simulator that allows debuigging of 8051 code at both the assembler level (working) and at the C source level (soon).

However, I have a bug in the "div ab" opcode that has mysteriously come into existence and I need to track it down. I have used almost every single GDB interface and there is not one single one of them that is not pure, unadulterated GARBAGE. I absolutely loathe and despise every single one for being UTTERLY unusable.

I attempted to use your debugger which may very well (finally) be a good GDB interface but my application aborts on launch under your debugger due to a "window outside the bounds of the screen" error (my UI window in my UI screen in Your debuggers output window). This is happening because seer keeps resizing (or reinstantiating) the program output window on run.

If I drag the output window to be large enough for my console text user interface application to run in, the instant I do so my application CORRECTLY pukes on the console window being too small.

Can seer please not resie its application output window just because the user asked for a new run of an application?

@epasveer
Copy link
Owner

epasveer commented Jan 4, 2025

Thanks for trying Seer. I too loathe the debuggers out there. That's why I wrote my own :) Suggestions are very welcomed.

As to your issue. I've never been happy with my console. I'm looking for a better one but the ones I find are quite large. So, for the moment, I'm stuck with what I wrote.

Anyway, I think I can do something here. At least, for the immediate time, I can add a fixed size or at least a minimum size to the console. This, of course, will be a configuration setting.

So, even if the console window is shrunk, the actual size reported back is still the same.

Would this help?

@epasveer epasveer self-assigned this Jan 4, 2025
@epasveer
Copy link
Owner

epasveer commented Jan 5, 2025

Actually, having thought about it, I think I'm reinstating the tty each time.

I can do something about that.

@mark4th
Copy link
Author

mark4th commented Jan 5, 2025 via email

@epasveer
Copy link
Owner

epasveer commented Jan 5, 2025

p.s. see attached screenshot of the 8051 debugger.

I don't think the screenshot got attached properly. I don't see it.

@mark4th
Copy link
Author

mark4th commented Jan 5, 2025 via email

@epasveer epasveer added the bug Something isn't working label Jan 5, 2025
@epasveer
Copy link
Owner

epasveer commented Jan 5, 2025

Sorry, still haven't got the screenshot.

Perhaps send it directly to my email: [email protected]

Or, use cut-n-paste into this comment thread instead of attach.

@epasveer
Copy link
Owner

epasveer commented Jan 6, 2025

Added the screenshot to the thread for history sake. Your program looks good! Gotta love ncurses.

image

@mark4th
Copy link
Author

mark4th commented Jan 6, 2025 via email

@mark4th
Copy link
Author

mark4th commented Jan 6, 2025 via email

@epasveer
Copy link
Owner

epasveer commented Jan 6, 2025

actually thats my own curses library written from scratch,

That's so cool.

I'm hopeful I can use your demo example to reproduce the bug you're encountering with Seer.

@mark4th
Copy link
Author

mark4th commented Jan 6, 2025 via email

@epasveer epasveer pinned this issue Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants