[C#] Debug.WriteLine() without parameters still tries to format the string


#1

(As previously discussed somewhere else)

When using the following in C#:

Debug.WriteLine("{'something':'some json string'}");

It still tries to format the string, even if you don’t specify any , params[] to the Debug.WriteLine() function. This is not a problem for normal strings, but as soon as you try to output something like a json string or something else containing { or } this will become a problem.

Side note, Debug.Write() does not log to the CitizenFX.log file, but Debug.WriteLine() does. Not sure if this is a related bug or if it’s intended behavior of that function.


#2

Debug.Write logs for me, when adding manually a new line to the string written out.