@j3s That would work!
Or you could install Form History Control!
Which will autosave form inputs. It has saved my bacon!
(edit: but seriously that's a really clever idea, it would not have occurred to me to attach gdb to recover that. Bookmarked!)