Print String not working

Just ran into this, and it also didn’t fix itself when I reset my editor preferences. I was able to cheat my way around it in visual studio.

In UnrealEngine.cpp, there’s a function:

void UEngine::Init(IEngineLoop* InEngineLoop)
{
	...

	if (GConfig)
	{
		bool bTemp = true;
		GConfig->GetBool(TEXT("/Script/Engine.Engine"), TEXT("bEnableOnScreenDebugMessages"), bTemp, GEngineIni);
		bEnableOnScreenDebugMessages = bTemp ? true : false;
		bEnableOnScreenDebugMessagesDisplay = bEnableOnScreenDebugMessages; // Force these to TRUE

		GConfig->GetBool(TEXT("DevOptions.Debug"), TEXT("ShowSelectedLightmap"), GShowDebugSelectedLightmap, GEngineIni);
	}
	...
}

If you force the values of bEnableOnScreenDebugMessagesDisplay and bEnableOnScreenDebugMessages to TRUE while starting up the editor, it clears out the issue so you can launch normally.

Still not sure what breaks it, but wanted to share the workaround.

1 Like