-
Notifications
You must be signed in to change notification settings - Fork 49
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
Added exit msgs #54
base: main
Are you sure you want to change the base?
Added exit msgs #54
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels like it should be a single function in src/chatdbg/util/exit_message.py
.
def print_exit_message(event):
print("Thank you for using ChatDBG!")
print("Share your success stories here: github.com/plasma-umass/ChatDBG/issues/53")
Did you try something like this re:LLDB? import atexit
@atexit.register
def goodbye():
print('You are now leaving the Python sector.') |
Atexit doesn't work with LLDB. Something about how LLDB exits doesn't interact as expected with Python interpreter. |
This should work for LLDB: debugger.SetDestroyCallback(print_exit_message) Another thing: we should only print if ChatDBG was actually used (not if the debugger exited without any use of ChatDBG). |
Co-authored-by: Nicolas van Kempen <[email protected]>
Added exit msgs with link to success stories page.
GDB/PDB: Msg prints when GDB/PDB is quit, returning to CLI.
LLDB: Doesn't have an on-exit event, so prints every time ChatDBG is exited and returns to LLDB interface. Maybe should just remove entirely?