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 [gist.github.com] 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.
↧