<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>