[Debugging] Can't step into some functions

Hi,

I’ve been trying to debug a function inside PlayerController called ServerRestartPlayer (APlayerController::ServerRestartPlayer). This function calls functions inside the GameMode (PlayerCanRestart and RestartPlayer). However, when I set a breakpoint in the ServerRestartPlayer_Implementation function, I can’t step into the PlayerCanRestart or RestartPlayer, it skips right over them and I have no idea why my player won’t respawn. Also, if I set a breakpoint inside those two functions of AGameModeBase, they don’t get triggered.

When building source, I used Debug Editor and launcehd from VS. I’ve even tried adding PRAGMA_DISABLE_OPTIMIZATION at the top of AGameModeBase but couldn’t get it to work.

Anyone know how I can debug properly?

Cheers