I have been working with Unreal Engine 4 and thus with PhysX 3.3 since last year. After the PhysX source was made available through UE4 I’ve really wanted to work inside PhysX and atm I’m trying to get the Visual Studio debugger to step through the PhysX code that’s running inside UE4.
Unreal Engine 4 has the PhysX source inside:
Then the PhysX visual studio solution file is in:
So far I can:
- open UE4.sln with Visual Studio
- build and run the UE4 Editor with a debug configuration
- open PhysX.sln with Visual Studio
- attach the VS debugger to UE4
- set breakpoints and step through PhysX code
The problem is that the debugger is very erratic because UE4 is attaching to the release build (PhysX3PROFILE_x64.dll) instead of the debug build (PhysX3DEBUG_x64.dll) of PhysX. Despite building UE4 with its “Debug Editor” configuration.
Both dll files inside:
This is a UE4 integration with PhysX issue and I posted on the UE4 AnswerHub: https://answers.unrealengine.com/questions/235415/how-to-debug-physx.html with no luck.
So I’m here asking if anyone here has encountered this issue and if you would like to share your solution.
I’m hoping there is a clean logical solution and that I won’t have to hack and slash UE4’s build configuration to fix this.
Thank you for your time