Conversation
kraleppa
left a comment
There was a problem hiding this comment.
Looking good - is possible to test if exception trace does appear?
I've added a usual scenario of clicking crash button in LiveDebuggerDev.LiveViews.Main. Recreating the situation in which this exact bug occurred is very tedious so I didn't try to make it in test. Or do you insist to do it? cc @kraleppa |
|
@hhubert6 I think it's fine
I think it's good enough 👍 |
* Fix * Fix ProcessMonitor crashing when live view not alive * Add test for exception trace
This behavior happen due to reading state of dead live view (while saving it)
which stops trace handling, raises error and crashes gen_server. When gen_server is started again all other traces that were stored in a gen_server inbox are lost and thus I assume the handle_info which ended with exception with them.
Simplest solution is to keep tracing flow despite of the result of saving state