wails
wails copied to clipboard
Global recovery option
Is your feature request related to a problem? Please describe.
There are situations where the app may work running wails dev but once compiled the app may crash for whatever reason maybe someone forgot to embed a file system or something else.
Describe the solution you'd like
The ability to add recovery middleware to the run section of wails.Run perhaps as the &options.App{ that is passed this would allow additional crash logs to be added or sent to third part systems.
Describe alternatives you've considered
No response
Additional context
No response
Thanks for opening a ticket! Great idea. Happy to accept a PR for this 👍
I have used panicwrap in combination with Wails in one project.
There are panics which one might not recover from, e.g. if the panic happens in some go routine that get spanned outside of the control e.g. in a 3rd party lib. Or there might be segfaults wich lead to panics that occur in native syscall, which can't always be recovered. Panicwrap allows to identify also these panics regardless where they happen.
Closing this due to inactivity. There's a solution here for v2 and we are supporting it natively in v3 👍