How to debug engine code on build of game?

I want to debug engine code on a build that was created in configuration DebugGame.
Everything seems fine, but I don’t have symbols for the engine if a game is packaged.
In an editor, it works fine.
What have I to do to debug engine code?