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] Debugging a plugin?
Forum Update on Monday, May 27th 2025

[SOLVED] Debugging a plugin?

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 2.7k 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.
  • P Offline
    P Offline
    postb99
    wrote on 6 Feb 2014, 14:23 last edited by
    #1

    Hello,

    I have the following setup and debugger doesn't stop at my Qt plugin class breakpoint.
    What's wrong?

    • MSVC 2010 with SDK 7.1, both in SP1 version
    • Qt 4.8.5 64 bit
    • x64 compiler
    • following debugger:
      ** name: "auto-detected CDB at c:\program files\debugging tools for windows (x64)\cdb.exe"
      ** there is a clickable link that states: "specify the path to the windows console debugger executable (64-bit version) here."
      ** path: c:\program files\debugging tools for windows (x64)\cdb.exe
      ** ABIs: x86-windows-msvc2010-pe-64bit
    • I use a library which added an interface to a standard Qt plugin. I implemented a class based on this interface.
    • I compile this library in debug mode.
    • I click on debugger icon and chose launcher.exe as startup program. This executable is the startup program of a project I was given and that hosts plugins. I will refer to it below as "hosting project". It's compiled in RelWithDebInfo mode. I have dlls and pdbs.

    Questions:

    • do I need to get a debug mode compiled version of hosting project?
    • I assume host project looks for plugins in its bin directory, so will my breakpoint work when I don't adjust source path ("mapping source paths" link below)?

    What's the proper way of debugging plugins?
    For now I didn't follow these instructions: http://qt-project.org/doc/qtcreator-2.8/creator-debugger-engines.html#mapping-source-paths

    From what I can see in "my log window":https://gist.github.com/postb99/f7d12d018cfdc09ec7f5 it seems I have to do it (warning : gist content updated according to second post below, mapping paths set now (can't link to a priori gist revision...). In addition I should have put my up-to-date dll in bin folder, right? Or else I would have older executable than source for my plugin.

    So what's the best way?

    Thanks.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      postb99
      wrote on 6 Feb 2014, 14:49 last edited by
      #2

      I configured mapping source path.
      Source path: C:\IMAGX-core\bin\applet-tutorial1.dll
      Target path: C:\QtApps\applet-tutorial1, this is where my .h and .cpp reside.

      Error remains:
      @ *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\IMAGX-core\bin\applet-tutorial1.dll -
      ModLoad: 000007fef5640000 000007fef564b000 C:\IMAGX-core\bin\applet-tutorial1.dll@

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 7 Feb 2014, 07:51 last edited by
        #3

        Hi,

        Might be a silly question but are you sure your plugin is build in debug mode ? Do you also have the according pdb file ?

        Has for you the search path of your host program, it depends on what plugin you implemented. Is it a Qt extension ? A custom plugin ?

        If the former, should be placed in the appropriate plugins subfolder. For the later it depends on your code.

        In any case to test/validate a plugin, you should have a dedicated test application or unit test so you have full control over the plug in related aspects.

        Hope it helps

        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
        • P Offline
          P Offline
          postb99
          wrote on 7 Feb 2014, 08:07 last edited by
          #4

          Hi,

          The team which provided the plugins host told me that they should give me a debug build of their code so that I can debug my plugin within it.

          I didn't see a .pdb generated in my plugin project debug build folder, I may be missing something?

          I need to look further at code but the plugin is just a subclass of a standard Qt plugin (http://qt-project.org/wiki/QtPlugins). But the plugin host looks in a specific directory, so it looks a bit like a custom plugin implementation.

          Thank, your answer helped too.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 7 Feb 2014, 22:10 last edited by
            #5

            You're welcome !

            Surprising indeed.

            You also need to ensure that you are all using the same Qt version

            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

            1/5

            6 Feb 2014, 14:23

            • Login

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