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.

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top