What is an alternative way to print to the console in C++ while debugging?

Godot Version

4.3

Question

Hello everyone,

I’m trying to find an alternative way to print messages to the console or the Visual Studio output window instead of using:
UtilityFunctions::print(".....");

The main reason is that I want to see debug messages when debugging the app from Visual Studio as a standalone application, not via the Godot editor.

Currently, if I use Godot_v4.3-stable_win64_console.exe as the runtime engine, it disables the debugging option (apparently due to something related to running the app in the same thread).

TL;DR:
How can I print debug messages when starting the app from Visual Studio (without launching the editor) and still be able to debug?