I'm building a custom control for Xamarin.Mac using Visual Studio for Mac. The control loads a PDF file and displays it. The control is in the early development stages so it crashes from time to time. The problem is when the control crashes the application window just closes without any exceptions in the log.
The test application has a main window from which (using a button) the second window with the control is opened. It is the second window that just closes when the data is loaded in the control. The 'Application output' window does not display anything (just some Loading assembly ... items).
How can I find why the window closes? Are there some other logs where I can look?