Reputation: 16089
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.
Upvotes: 2
Views: 2252
Reputation: 595320
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.
Upvotes: 4