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. Solved: Qt Creator doesn't debug a non-Qt project

Solved: Qt Creator doesn't debug a non-Qt project

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 8.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.
  • J Offline
    J Offline
    jzhang636
    wrote on last edited by
    #1

    Hello experts-

    I just started using Qt Creator in Ubuntu via a VM on Windows. I created a plain non-Qt C project using the Creator. When I tried to debug the project, I got an error message describing a prblem as below:

    "ptrace: Operation not permitted.

    Could not attach to the process. Make sure no other debugger traces this process.
    Check the settings of
    /proc/sys/kernel/yama/ptrace_scope
    For more details, see /etc/sysctl.d/10-ptrace.conf"

    The system environment is set as below:
    Native OS: Windows 7 (64 bit)
    UBuntu: 12.04
    Qt: 4.8.3 (64 bit)
    Creator: 2.6.2
    Compiler: GCC (x86 64 bit)
    Debugger: GDB 7.4-2012.04, configured as x86_64-linux-gnu

    The program was built and run properly without debugging mode.

    I look forward to any hints/ideas on how to fix the the problem.

    Thanks in advance.

    Jason

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jzhang636
      wrote on last edited by
      #2

      Just found that this is actually an issue of Qt Creator with Ubuntu of versions later than 10.10. Go https://bugreports.qt-project.org/browse/QTCREATORBUG-3509 to find a workaround to the problem.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Thanks for sharing the info, could you also update the thread's title to solved ? So other users having the same problem will grab the workaround :)

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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