<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Yes i was thinking about no contacts case. As seaside is cached
    database it can not produce any calls if no contacts. Talking about
    debugging imho you need to build a static library to see what
    happening inside it. But i may be wrong.<br>
    <br>
    <div class="moz-cite-prefix">15.03.2015 18:08, Dmitriy Purgin пишет:<br>
    </div>
    <blockquote
cite="mid:CA+y33yTu3FJUjg9B52ZrV0w16dp-HttPd0ST+z+kApX84qBwRQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi,<br>
          <br>
        </div>
        <div>thanks for answering.<br>
        </div>
        <div><br>
        </div>
        <div>What difference does debugging on device or emulator make
          to debugging the contacts lib itself if the environment is set
          properly for both? The worst case you get is that it tells you
          that there are no contacts whatsoever. The question is not
          about debugging the contacts database but about the principles
          of debugging any shared library. The only reason I've brought
          the contacts lib as an example is because I'm working with it
          now. <br>
          <br>
          So in this case I'd like to trace the execution of
          personByPhoneNumber(). In other words, step into
          seasidefiltermodel.cpp and look what's happening in<span
            class=""> SeasideFilteredModel::personByPhoneNumber</span>
          and further seasidecache.cpp's <span class="">SeasideCache::itemByPhoneNumber,
            and so on</span>.<br>
          <br>
        </div>
        <div>Cheers<br>
        </div>
        <div>Dmitriy<br>
        </div>
        <div>
          <div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">2015-03-15 18:00 GMT+06:00 Andrey
                Kozhevnikov <span dir="ltr"><<a
                    moz-do-not-send="true"
                    href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>></span>:<br>
                <blockquote class="gmail_quote" style="margin:0px 0px
                  0px 0.8ex;border-left:1px solid
                  rgb(204,204,204);padding-left:1ex">
                  <div bgcolor="#FFFFFF" text="#000000"> imho you need
                    to install it to phone and debug contacts on device,
                    not emulator?<br>
                    <br>
                    <div>15.03.2015 16:47, Dmitriy Purgin пишет:<br>
                    </div>
                    <blockquote type="cite">
                      <div>
                        <div class="h5">
                          <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></fieldset>
                          <br>
                        </div>
                      </div>
                      <pre>_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a moz-do-not-send="true" href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></pre>
                    </blockquote>
                    <br>
                  </div>
                  <br>
                  _______________________________________________<br>
                  SailfishOS.org Devel mailing list<br>
                  To unsubscribe, please send a mail to <a
                    moz-do-not-send="true"
                    href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
                </blockquote>
              </div>
              <br>
            </div>
          </div>
        </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>