Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Debugging external application & showing C++ code, not assembly

Debugging external application & showing C++ code, not assembly

Scheduled Pinned Locked Moved Qt Creator and other tools
debuggingdebugqt creatorgdbgdbenginegcc
2 Posts 1 Posters 3.4k 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.
  • GeremiaG Offline
    GeremiaG Offline
    Geremia
    wrote on last edited by
    #1

    Whenever I debug an external application compiled with gcc's -g or -ggdb flag, using Debug → Start Debugging → Start and Debug External Application… in Qt Creator, it shows the assembly code in a "Dissembler (raise)" pane, not the C++ code. If I click a break-point, a dialog box pops up saying, if e.g. my source file is called "main.cc": «Cannot open "main":0 for reading: No such file or directory.»

    How can I get the GDB debugger in Qt Creator to show the C++ code corresponding to my break-points, not the assembly?

    Is this a matter of a missing "marker file"? If so, how do I explicitly tell GDB where my C++ source file is?

    1 Reply Last reply
    0
    • GeremiaG Offline
      GeremiaG Offline
      Geremia
      wrote on last edited by Geremia
      #2

      It was because I was in instruction-wise operation mode. Unchecking Debug → Operate By Instruction solved my 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