.pdb file in packaged game since 4.20

In 4.19 and before, in the file “Engine\Binaries\Win64” of my packaged game, there would only be a .exe file (Blueprints only project) but since 4.20, there is an additional .pdb file included. Deleting the file still allows the game to work properly and drastically reduces the file size .

Is this file actually needed? If not, how do I remove it from the build?

The pdb files suggest that it is forced into building /DEBUG somehow even when set to Shipping (release) mode. And I can confirm the files are there and causing size issues. My settings are set to not include debug data. Can we get some help on this?

(oh and yes you can search .pdb and delete them without the game being bricked, still needs to be fixed)

4.20.3, the bug is still there.

I don’t know if you did it before, but I just submitted a bug about this problem (that I just noticed as well) through Unreal Engine Community

Don’t forget to submit the bug there in the future, otherwise I doubt it will be noticed.

The bug was entered in the database: Unreal Engine Issues and Bug Tracker (UE-66075)

There are .pdb files also in Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015 – I’m assuming they are not needed either? The game launches fine but I don’t have a lot going on to determine if everything PhysX related works.

Fixed in 4.21