Question

I am using Borland C++Builder 6.0 (don't ask). Is there any debug-logging mechanism in this IDE? I'm looking for something analogous to writing to stderr from console C/C++ applications, or calling NSLog from a Cocoa application.

Was it helpful?

Solution

You can use the Win32 API OutputDebugString() function to send messages to the IDE's Event Log messages window while the app is running inside the debugger. This function is also useful even if your app is not running inside the IDE debugger, because third-party loggers, like SysInternals DebugView, can catch and display the same messages.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top