<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      sorry but with the current SDK it is not possible to use gdb from
      IDE. That scratchbox2 message is not relevant, since gdb would be
      run from the host and not from inside the build machine.<br>
      <br>
      We're working hard to get a new SDK release out, but can't give a
      date yet.<br>
      <br>
      Best regards,<br>
       Juha<br>
      <br>
      On 27.02.2014 10:52, Iosif Hamlatzis wrote:<br>
    </div>
    <blockquote
cite="mid:CAD2f6zUHHBKwNt=uU+v8+GqVNSNDwrLD3M9QS7LdWezZoN3W0g@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">I've just managed to port one of my BB10 games to
        SailfishOS, but now the problem is how to debug it on the
        emulator and later on the actual device.
        <div><br>
        </div>
        <div>I am using <b>windows</b> and want to be able to debug
          (step by step) from <u><b>inside the IDE</b></u>.</div>
        <div><br>
        </div>
        <div>When the compilation finished I've noticed a message on the
          "compile output" window:</div>
        <div><br>
        </div>
        <div>
          <p style="margin:0px"><span style="color:rgb(0,0,0)">===========================================================</span></p>
          <p style="margin:0px"><span style="color:rgb(0,0,0)">Welcome
              to scratchbox2 enabled gdb!</span></p>
          <p style="margin:0px;color:rgb(0,0,0)"><br>
          </p>
          <p style="margin:0px"><span style="color:rgb(0,0,0)">Before
              starting target program you should run command</span></p>
          <p style="margin:0px"><span style="color:rgb(0,0,0)">'sb2-prepare'
              that sets breakpoint which is used</span></p>
          <p style="margin:0px"><span style="color:rgb(0,0,0)">to stop
              target before its main() gets called. After</span></p>
          <p style="margin:0px"><span style="color:rgb(0,0,0)">the
              breakpoint is hit, you are able to set furtherbreakpoints
              and do normal debugging actions.</span></p>
          <p style="margin:0px;color:rgb(0,0,0)"><br>
          </p>
          <p style="margin:0px"><span style="color:rgb(0,0,0)">If you
              are attaching to already running process or</span></p>
          <p style="margin:0px"><span style="color:rgb(0,0,0)">examining
              a core dump, this step is not necessary.</span></p>
          <p style="margin:0px"><span style="color:rgb(0,0,0)">===========================================================</span></p>
          <p style="margin:0px"><span style="color:rgb(0,0,0)"><br>
            </span></p>
          <p style="margin:0px"><span style="color:rgb(0,0,0)">How do I
              call this "sb2-prepare" command from inside the <b>IDE?</b></span></p>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list</pre>
    </blockquote>
    <br>
  </body>
</html>