You need to ensure that enough debugging information is available for MyApp.exe, so that if the application throws an error…