Skip to content

Program analyses debugger information file (PDB, so Microsoft Visual C++ only) and presents info about user defined structures (size, padding, etc).

License

Notifications You must be signed in to change notification settings

MarcAudy/crunchersharp

 
 

Repository files navigation

crunchersharp

Program analyses debugger information file (PDB, so Microsoft Visual C++ only) and presents info about user defined structures (size, padding, etc).

Original blog post: http://msinilo.pl/blog/?p=425

Getting Started

Windows 10 Visual Studio 2019

  1. Clone the repo
    git clone https://github.com/BenHoffmanEpic/crunchersharp.git
    
  2. Open command prompt or PowerShell as Admin
  3. Find the directory where your msdia dll is located, which by default is loacted with you Visual Studio installation:
cd C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE
  1. Register the msdia140 dll manually:
regsvr32 msdia140.dll
  1. Build the MSVC Project that you want with full debug symbols. By default in VS 2019/2017 it is set to use /debug:fast, we need /debug:full. This setting is located in Visual Studio project settings at Linker > Debugging > Generate Debug Info.
  • To change this in UE projects you will need set the Unreal Build Tool flag called bUseFastPDBLinking. Currently (4.24) the default value is to be turned off, which is what you want for using Cruncher.
  1. Open up Cruncher in Visual Studio
  2. Right click on the C# Project and select "Properties"
  3. Go to "Debug" and Select Enable native code debugging at the bottom.
  • Make sure you have "All Configurations" selected here to ensure you have it in both Release and Debug
  1. Create an x86 build configuration by clicking the Solution Platforms dropdown and selecting Configuration Manager... then clicking on the Active Solution Platform and creating a new x86 setting.
  • This has to be x86 due to the msdia140 DLL, if you don't do this you may get unresolved symbols in Release modes.

Screenshot

About

Program analyses debugger information file (PDB, so Microsoft Visual C++ only) and presents info about user defined structures (size, padding, etc).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%