Impossible to debug on Desktop build

Bug #1450773 reported by Kyle Fazzari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu (Ubuntu)
Fix Released
High
Benjamin Zeller

Bug Description

When a user is developing a scope on Vivid:

Expected behavior:

1) User sets CMAKE_BUILD_TYPE=debug, runs cmake, and builds with the Desktop compiler.
2) User sets a few breakpoints of interest.
2) User runs the scope in debug mode (i.e. "Start Debugging").
3) Scope runs, and break points are hit.

Actual behavior:

1) User sets CMAKE_BUILD_TYPE=debug, runs cmake, and builds with the Desktop compiler.
2) User sets a few breakpoints of interest.
2) User runs the scope in debug mode (i.e. "Start Debugging").
3) Scope runs, but no break points are hit!

Note that the Application Output includes "Warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device."

Related branches

Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

If you run a app locally in debug mode the debugger attaches to the process executed by qtc. The problem with the scope runner is that it is not the process we want to debug, bug instead it spawns a new subprocess that is the scope. So what we need is a similar technique as we use on the phone, the scoperunner needs to start a gdbserver we can attach to.

Its not a trivial task to make that work, that problem is known and on our ToDo list already.

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Triaged
assignee: nobody → Benjamin Zeller (zeller-benjamin)
importance: Undecided → High
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Alright, thanks Benjamin!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator-plugin-ubuntu - 3.5.0+15.10.20150812-0ubuntu1

---------------
qtcreator-plugin-ubuntu (3.5.0+15.10.20150812-0ubuntu1) wily; urgency=medium

  [ Benjamin Zeller ]
  * Removed modes depending on deprected QtWebKit mode, also most of
    them were not really useful lp:1457473 Fix Bug lp:1462312 "The
    plugin doesn't remember Run Configuration settings at all" Refactor
    ubuntu-sdk plugin to compile against the QtC upstream master branch
    (LP: #1462312, #1457473, #1450773, #1461037)

  [ CI Train Bot ]
  * New rebuild forced.

 -- CI Train Bot <email address hidden> Wed, 12 Aug 2015 12:06:45 +0000

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.