Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Mac OS - Hit Breakpoint in dynamic library

Mac OS - Hit Breakpoint in dynamic library

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.5k 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.
  • A Offline
    A Offline
    acapp
    wrote on last edited by
    #1

    Is it possible to "break" in a dynamic library? I'm using Qt Creator 4.1.0 (based on Qt 5.7.0) and my OS is OSX Yosemite version 10.10.5. The app and dynamic libs are both debug builds.

    If I set a breakpoint in my application code before a library function is called, I can then step through the library code. However; I cannot set and hit a breakpoint in a dynamic library.

    Any help is appreciated.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      acapp
      wrote on last edited by
      #2

      Just an update. Not sure what I did, but there was a brief time where breakpoints started working. This lasted about a week, and then stopped after a made some changes to the dynamic library.

      The dynamic library is definitely a debug build. The frustrating thing is a know now it's possible, but I have no idea how to make it work consistently.

      1 Reply Last reply
      0
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        are they in the same project?

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        A 1 Reply Last reply
        0
        • m.sueM Offline
          m.sueM Offline
          m.sue
          wrote on last edited by m.sue
          #4

          Hi,
          you usually cannot set breakpoints if you (why ever) do not rebuild the dynamic library after your changes, i.e. the source does not match the lib.
          -Michael.

          1 Reply Last reply
          0
          • VRoninV VRonin

            are they in the same project?

            A Offline
            A Offline
            acapp
            wrote on last edited by
            #5

            @VRonin
            The dynamic libraries are built outside of the Qt project. I use the Qt "Add Library" wizard to point to the libraries.

            As I mentioned in my first post, if I set a breakpoint in the Qt code just before a library function is called I can single step through the dynamic library code.

            What I can't do is place a breakpoint in the library code, start a debug session, and hit a breakpoint.

            Not sure why it worked for a brief time and now it stopped.

            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