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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top