<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    imho you need to install it to phone and debug contacts on device,
    not emulator?<br>
    <br>
    <div class="moz-cite-prefix">15.03.2015 16:47, Dmitriy Purgin пишет:<br>
    </div>
    <blockquote
cite="mid:CA+y33yTpxSUWuZXe6R3cTaU=D3VAxGu+T3cX2w3unsh6a0E+9A@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi,<br>
              <br>
            </div>
            I'm struggling the whole day with this problem. Is there a
            way to debug a shared library not included to a project? In
            particular I'd like to see what's happening in
            nemomobile-qml-plugin-contacts-qt5. <br>
            <br>
          </div>
          <div>I have the following sample code being executed in
            Sailfish Emulator:<br>
            <br>
          </div>
          <div><span style="font-family:monospace,monospace">import
              org.nemomobile.contacts 1.0<br>
              <br>
              // ...<br>
              <br>
            </span></div>
          <div><span style="font-family:monospace,monospace">PeopleModel
              {<br>
            </span></div>
          <div><span style="font-family:monospace,monospace">    id:
              people<br>
            </span></div>
          <div><span style="font-family:monospace,monospace">}<br>
              <br>
              // ...<br>
              <br>
            </span></div>
          <div><span style="font-family:monospace,monospace">var p =
              people.personByPhoneNumber('somephonenumber');</span><br>
          </div>
          <div><br>
          </div>
          I'm putting a break point on people.personByPhoneNumber() call
          and try to step in, and it doesn't work.<br>
          <br>
          Prior to trying to step into the library code I've installed
          both nemomobile-qml-plugin-contacts-qt5-debuginfo and
          nemomobile-qml-plugin-contacts-qt5-debugsource to i486 target
          using Qt Creator's SailfishOS tab. After that stepping in
          didn't work. Then I pushed the 'sync' button  a couple of
          times to make sure it worked but it didn't.<br>
          <br>
        </div>
        <div>Then I've logged into the build machine and installed these
          packages using zypper. Pushed the 'sync' button in Qt Creator
          but stepping in still didn't work. Interesting thing is though
          that the packages were installed as if there were no packages
          installed using Qt Creator.<br>
          <br>
        </div>
        <div>I've looked into gdb output and saw that it sets
          substitute-path
          <p style="margin:0px;text-indent:0px">SailfishOS/mersdk/targets/SailfishOS-i486/usr/src
            for /usr/src. I didn't have anything in
            SailfishOS/mersdk/targets/SailfishOS-i486/usr/src, in fact,
            I didn't have the src directory at all. It seems like the
            packages I've installed in the build machine were not
            synchonised with my host machine. I've done it with scp
            transfer but stepping in still doesn't work.<br>
          </p>
          <p style="margin:0px;text-indent:0px"><br>
          </p>
          <p style="margin:0px;text-indent:0px">Could anyone please give
            me some hints on debugging external libraries or guide me to
            any resource explaining the process?</p>
          <p style="margin:0px;text-indent:0px"><br>
          </p>
          <p style="margin:0px;text-indent:0px">Thanks.</p>
          <p style="margin:0px;text-indent:0px"><br>
          </p>
          <p style="margin:0px;text-indent:0px">Cheers</p>
          <p style="margin:0px;text-indent:0px">Dmitriy Purgin<br>
          </p>
          <p style="margin:0px;text-indent:0px"><br>
          </p>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>