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. Access QObject with VSCode and GDB
Forum Updated to NodeBB v4.3 + New Features

Access QObject with VSCode and GDB

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 308 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.
  • K Offline
    K Offline
    Kasaniet
    wrote on last edited by Kasaniet
    #1

    Hi Guys,

    I have a problem about QT debug. Now I'm working on a linux project which consist by C++ Libs(70%) & QT Applications(30%). We use cmake to manage the whole project since most modules doen't have any QT features.

    The primary IDE of our group is VSCode, and I found that monite QT Object / Variables is quiet hard during debug.

    For example, there is a QString p = "some text", and what I could see from the debugger is something like this:
    5ec1759c-6c41-49b8-aee9-b62469212ddf-1663837614472.png .
    I understand sometimes let developer access more detail is helpful, but I still want know if there is anyway that may help me have a look at the actual text information just like what people can do in QTCreator.

    In real applications, there is a lot of container like QList and pointers like QSharedPointers, which make my job even more complex. Now what I did is printing everything by qdebug, but I think maybe there is a better way to solve this problem.

    I'd like to know if there is any QT/VSCode/GDB tools that may help. I did some research but doesn't have any luck yet.

    Thanks in advance,

    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