Build a standalone version of your game, then run it with NVIDIA NSight debugger (assuming you are using NVIDIA hardware.)