Open a game in Unity editor. Open the codebase in VS. Attach VS debugger to Unity. Start Debug mode in VS. Start the game in Unity.