Undefined behavior in Plat_IsInDebugSession
Author: TechGuardCreated Jun 25, 2026Updated Jun 25, 2026
Hello,
While debugging the PlayStation build, we noticed undefined behavior in Plat_IsInDebugSession. It seems that the NDA material has been removed but is missing a replacement in the ps5 project.
https://github.com/ValveSoftware/GameNetworkingSockets/blob/partner/src/tier0/dbg.cpp#L121
bool Plat_IsInDebugSession()
{
...
#elif IsPlaystation()
// NDA material << does not return any value
#elif IsNintendoSwitch()
return false;
#else
#error "HALP"
#endif
}Source: ValveSoftware/GameNetworkingSockets