Visual Studio 2017 breaks in debug mode and displays the message:
Your app has entered a break state, but there is no code to show because all threa
Click on "Continue execution"
Then you will have the stacktrace in the output tab