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

  • SEARCH
  • Home
  • 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 236985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:23:21+00:00 2026-05-11T20:23:21+00:00

I am using ASSERTE macro to check for pre-conditions. According to its definition it

  • 0

I am using ASSERTE macro to check for pre-conditions. According to its definition it is using ASSERT_BASE, which in turn calls _CrtDbgReportW to print out the message. Where does _CrtDbgReportW output goes to?

I would assume that if the application is started from debugger, it would go to debugger window. Where would the messages go if it is not under debugger?

  • 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-11T20:23:21+00:00Added an answer on May 11, 2026 at 8:23 pm

    The output for _CrtDbgReportW depends on how you set it up. By default it sends it to the OutputDebugString API.

    Debuggers trap the OutputDebugString output and normally display them in the debugger window as you suggest.

    There are also applications that trap the output like DebugView that you can use for PC applications.

    Update: I missed the Windows Mobile bit. I still beleave that it’s output to the OutputDebugString but I don’t know of any third party application that works. The only way I know of to trap the OutputDebugString output under Windows Mobile is to use the Debugging Functions DebugActiveProcess / WaitForDebugEvent to trap the OUTPUT_DEBUG_STRING_EVENT events and write them out somewhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using nodeunit is there an assert to check for false values? Other testing frameworks
I am using some Qt code that adds a VERIFY macro that looks something
Currently, I am using a type-safe enum class from Boost Vault : Which Typesafe
I'm using a macro that might be dangerous: #define REMAINDER(v, size) ((v) & (size
After years of using the big ugly MFC ASSERT macro, I have finally decided
What is the difference between Java exception handling and using assert conditions? It's known
I'm using asserts_redirected_to in my unit tests, and I'm receiving this warning: DEPRECATION WARNING:
Using JUnit 4.10 here is my test. package geometry; import org.junit.Assert.*; import org.junit.Test; public
When using implicit waits, as advised here , I still sometimes want to assert
I am using XUnit framework to test my C# code. Is there any assert

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.