I recently had to do some changes in some Delphi code. Therefore, I have some basics questions:
- Generally, how do I output to the console?
- How do I output to the console with
fxthat is a string variable?
I started using OutputDebugString, but I couldn’t get it working with a variable.
You can write a wrapper function to take care of the variables passed to
OutputDebugStringas it expects a PChar.Something like:
There is a useful reference for debugging techniques here.
And if your Delphi is a bit rusty there’s the ever useful Delphi Basics site. I use it a lot 🙂