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. Debugging starts, failed, finished
Forum Updated to NodeBB v4.3 + New Features

Debugging starts, failed, finished

Scheduled Pinned Locked Moved General and Desktop
gdbpython
1 Posts 1 Posters 1.9k Views 1 Watching
  • 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
    Ratzz
    wrote on 25 Sept 2015, 12:05 last edited by
    #1

    I am using Linux(Ubuntu 10.04) . I configured QT5.5 (qt-opensource-linux-x86-5.5.0.run) . My application can be compiled only in "run "(Cntrl+R) mode . I cannot compile in "debug" mode (F5) .
    If i run my application using F5 i get following in the "Application output " tab.

    Debugging starts
    Debugging has failed
    Debugging has finished
    

    If i run using cntrl+R my application runs .
    I feel debugger is not configured properly.
    I installed newer version of Gdb using these command .

    ./configure --prefix /usr/local/gdb-python2 --with-python
    make
    make install
    

    I then checked version and it says .

    root@userdesktop:/home/user# /usr/local/gdb-python2/bin/gdb --version
    Python Exception <type 'exceptions.ImportError'> No module named gdb: 
    /usr/local/gdb-python2/bin/gdb: warning: 
    Could not load the Python gdb module from `/usr/local/gdb-python2/share/gdb/python'.
    Limited Python support is available from the _gdb module.
    Suggest passing --data-directory=/path/to/gdb/data-directory.
    
    GNU gdb (GDB) 7.9
    Copyright (C) 2015 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "i686-pc-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    For help, type "help".
    Type "apropos word" to search for commands related to "word".
    

    I then checked python version and it says

    (gdb) python print sys.version
    2.6.5 (r265:79063, Feb 27 2014, 19:56:00) 
    [GCC 4.4.3]
    

    I cannot set breakpoints any where in the code.. My application just runs and gives the output.
    Why cant i set breakpoint?. Is it the issue with python? because python version should be greater than 2.7 .

    --Alles ist gut.

    1 Reply Last reply
    0

    1/1

    25 Sept 2015, 12:05

    • Login

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