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 8016945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:41:22+00:00 2026-06-04T20:41:22+00:00

I normally work with Qt Creator for my C++ needs. When an assertion in

  • 0

I normally work with Qt Creator for my C++ needs. When an assertion in my program fails, it can show me which assertion failed. In Visual Studio, I only see this:

Failed assertion

I can click Retry to jump into the application, but it doesn’t tell me which assertion failed. Even for a simple assert(false) Visual Studio tries to show me the source code for msvcr100d.dll, which isn’t available.

How can I find out which assertion in my program failed? I really don’t want to do a cumbersome manual search using a combination of breakpoints and std::couts for something that can be tracked down automatically.

Edit: Visual Studio did in fact generate a .PDB file for me, but it still isn’t working. Although the debugger won’t highlight the line with the failed assertion, I do see Assertion failed: false, file main.cpp, line 8 on the command line. Why can’t it just show me the line and let me inspect the variables? I mean, all the information appears to be available…

  • 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-06-04T20:41:24+00:00Added an answer on June 4, 2026 at 8:41 pm

    All you should have to do is click “Retry” to break into the application’s source code with the debugger. That will highlight the line containing the assertion that failed, so it’s easy to see the culprit unless you like to cram multiple nested assertions onto a single line. And if you do, then you deserve all the pain that this might cause you.

    The reason it’s not working for you now is more than likely because you don’t have the debugging symbols available from your application’s current build. When you build an app with the compiler bundled with Visual Studio, depending on your project settings, it will generate a .PDB file, which contains the debug symbols. These are required to get useful information while debugging, such as what line produced the last failure.

    Make sure that when you compile your application, you have it set to generate debug symbols. You should see a .PDB file in your /bin directory. As discussed here, the generation of debug symbols is orthogonal to whether optimizations are enabled (the configuration typically known as “Release”).

    Update: I just realized you’re probably compiling/building the app in Qt Creator, and then trying to debug the binaries from Visual Studio. That’s not going to work out well—if you don’t compile using VS’s tools, it’s not going to generate debug symbols that the VS debugger can read.

    I assume the problem would be the same in reverse: if you built with Visual Studio, then tried to debug with Qt Creator, it probably wouldn’t be able to interpret the debugging symbols, either.

    Therefore, I’d recommend sticking with a single toolset for building. It doesn’t matter which IDE you use, but you’ll need to compile/build with the same tools. You can configure either Qt Creator or Visual Studio to use the compiler and linker bundled with the other. Typically Qt Creator comes with a Win32 port of GCC, but it’s trivial to get it to build with Microsoft’s toolset instead, which would allow you to use VS to debug your code.

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

Sidebar

Related Questions

On Windows, I normally work with Total Commander, which can easily be configured to
I'm doing some work in Processing, which is basically Java. I normally do only
I normally work with jQuery, which takes away most of the cross browser pain
I create Text to Speech application which work normally but my problem is that
In many cases, code which works in the debug version doesn't work normally in
This kind of code would normally work in PHP, but since the scope is
I have two branches I normally work on: master and homepage_buildout. I was recently
Use case: class MyTask(Task): queue = 'default_queue' def run(self): # do work Normally I
Normally with Java Swing you can set the background color of a button with:
I normally work on Python projects and we have a good tool called virtualenv

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.