OJW
OJW

Reputation: 4632

Debugging Qt applications without loading Windows DLLs

How can you run a program in the Qt debugger without waiting for it to load debugging information for every dependent DLL?

Instead of starting immediately, we wait for the IDE to load debugging info for msctf.dll, api-ms-win-crt-runtime.dll, wlanutil.dll, ddraw.dll, atigktxx.dll, and many other components which we're not interested in debugging the internals of.

Similarly, when the application displays a "file-open" dialog box, we have to wait for comctl32.dll, IconCodecService.dll, SearchFolder.dll, WMASF.dll and many others to be loaded, even though we won't be debugging those.

Upvotes: 1

Views: 177

Answers (1)

ks1322
ks1322

Reputation: 35795

I guess this answer for linux should work for you on windows as well:
https://stackoverflow.com/a/41025900/72178

If you want to completely skip all debugging information from all DLLs you can do this before running the binary in gdb:

(gdb) set auto-solib-add off 

Upvotes: 1

Related Questions