Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator debugging code in MSVC and CDB
Forum Update on Monday, May 27th 2025

Qt Creator debugging code in MSVC and CDB

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 210 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    range36rus
    wrote on last edited by
    #1

    I use Qt 5.12.3, Qt Creator 4.9.1, MSVC 2017 x64 and debugger CDB. I'm doing a step-by-step debugging of this code:

    try
    {
       int a(458);
       throw a;
    }
    catch(int& a)
    {
         qDebug() << a;
    }
    

    An exception occurs and it is displayed:
    enter image description here

    But I don't hit the catch block, the app just stops. How to fix this problem? Thanks.

    P.S.:
    I saw this message and it does not work:
    enter image description here

    1 Reply Last reply
    0
    • R Offline
      R Offline
      range36rus
      wrote on last edited by
      #2

      I checked all the debuggers from the Win 10 SDK, Win 8.1 SDK, and even the Win 7 SDK!
      X86 and x64 versions.I can't get into the catch block in all cases, the debugger have an error and just stops. Has somebody ever had such a problem?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved