Hey Algorithman,
I’m not sure if you’re referring to debugging the packaged .exe, or debugging the process during packaging.
I’ve come across a couple of articles that might help you debug your packaged game, and I’d recommend trying these:
Let me know if that helps, or if you have any further questions.
Have a great day