Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Undefined behavior in Plat_IsInDebugSession

Closed
#419 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp

Research direction

Start in src/tier0/dbg.cpp at Plat_IsInDebugSession and inspect the IsPlaystation() preprocessor branch, then check the PS5 project configuration and available platform implementations. Confirm the replacement behavior with the PS5 build or tests, and consider the issue done when the function returns a defined result without introducing platform-specific build failures.

Written by the indexing model from the issue text.

Description

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
}
Dominant language
C++
Stars
9.9k
Forks
749
Avg merge
5d 19h
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ValveSoftware/GameNetworkingSockets

All issues in ValveSoftware/GameNetworkingSockets

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.