I need to debug some ISPC codes. Is there a way to make ISPC compiler creating debug symbols for ISPC programs? I need to step through the ISPC codes in visual studio. I know this can be done with ISPC compiler and it can generate debug symbols but I don’t know where I can do it within unreal projects!
Actually I found the answer. The CPP configuration should be debug for it so the debug symbols be created for ISPC programs but because the projects gets extremly heavy the engine build is not on debug by default so no there is no ISPC debug symbol.
In case you faced the same issue just open ISPCToolChain.cs, in UE 5.1, there is a line CommonArs.Add(-g -00). That’s the exe arguments for debugging but It is guarded by this condition:
CompileEnvironment.Configuration == CppConfiguration.Debug. You can temporarily remove that condition while debuging so the -g be passed to ISPC compiler and generates the debug symbols