Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 943647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:28:04+00:00 2026-05-15T22:28:04+00:00

I am trying to find out how to enable (& use) Borland’s WARN &

  • 0

I am trying to find out how to enable (& use) Borland’s WARN & TRACE macros.

My starting point was this link:
http://bcbjournal.org/articles/vol2/9809/Debugging_with_diagnostic_macros.htm?PHPSESSID=37bf58851bfeb5c199d1af31d7b2e7ff

However, that appears to be for BCB5, and not the 2006 Borland Developer Studio.

  • I’ve set the two defines (__WARN & __TRACE)
  • I’ve included the .h file ()
  • I’ve added some macros, and everything compiles & links fine.

But when I run the application (in DEBUG mode), no debug output file is created.

What am I missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:28:05+00:00Added an answer on May 15, 2026 at 10:28 pm

    I was investigating this debug TRACE feature too since I use Borland’s toolchain. A couple things I noted while I was figure this out.

    • Make sure __TRACE and __WARN are define before #include <checks.h>.
      You can also remove the #define __TRACE and __WARN from the translation unit and instead pass it to bcc32 using the -D macroname option during compilation.
    • _GetDiagGroupDef is unresolved for BDS2006. It seems the compiler toolchain that comes with BDS2006 and later seems to be missing some function and class implementation that checks.h uses — in particular _GetDiagGroupDef. I get unresolved references from the linker when compiling a test sample that uses checks.h. This doesn’t happen when I use BCB 5.5.1 btw. Using grep/findstr it appears checks.cpp is compiled into the runtime library of BCB5.5.1 but it’s missing from BDS2006 toolchain. I’m surprised you didn’t run into the same problem, perhaps I didn’t install some components. I found a copy of checks.cpp from an older borland toolchain here. Compiling and linking that should fix the unresolved errors.
    • The tutorial says that the outdbg1.txt is a temporary file and it only shows up in the borland IDE — for that file to actually exist you must save it. This suggest to me that their TRACE/WARN Macros doesn’t actually output a debug file. It’s probably outputting the debug info to a stderr stream.

    If that’s really the case then redirecting the stderr stream to a file should give what you’re looking for. Compile your sample program, then run it with something like this:

    myprogram.exe 2> outdbg1.txt
    

    All in all, you’ll probably want to find alternative tools to aid you in the debugging process. Unfortunately, the TRACE & WARN macros provided here are poorly documented and for later versions of borland/embarcadero’s toolchain it doesn’t even work properly because the rtl doesn’t have the needed functions/classes compiled into it. As such, the following is worth investigating:

    1. OutputDebugString API. This has the advantage that any monitor program that uses this API can receive debug message strings from your program that’s being debugged.
    2. xUnit Testing Framework. Google Test is worth checking out.
    3. and of course your standard integrated IDE debugger 😛
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to find out how to use usercontrols in asp.net mvc. I
im trying to find out how this text editor work, iv been scanning through
I have been trying to find out the problem to this for a day
Im trying to find out a good JavaScript library that can create a nice
I'm trying to find out how much memory my own .Net server process is
I'm trying to find out if there is any way to elevate a specific
I'm trying to find out the 'correct' windows API for finding out the localized
I'm trying to find out whether I should be using business critical logic in
I am trying to find out how to upload a file from a web
I am trying to find out how much memory my application is consuming from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.