See how to add SourceLevelDebugPkg to a EDK II platform.
Enabling debugging with OVMF is a good way to evaluate Source Level Debugging in EDK II: