OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="debugging-with-visual-studio"> | 3 <section id="debugging-with-visual-studio"> |
4 <span id="devcycle-vs-addin"></span><h1 id="debugging-with-visual-studio"><span
id="devcycle-vs-addin"></span>Debugging with Visual Studio</h1> | 4 <span id="devcycle-vs-addin"></span><h1 id="debugging-with-visual-studio"><span
id="devcycle-vs-addin"></span>Debugging with Visual Studio</h1> |
5 <div class="contents local" id="table-of-contents" style="display: none"> | 5 <div class="contents local" id="table-of-contents" style="display: none"> |
6 <p class="topic-title first">Table Of Contents</p> | 6 <p class="topic-title first">Table Of Contents</p> |
7 <ul class="small-gap"> | 7 <ul class="small-gap"> |
8 <li><a class="reference internal" href="#introduction" id="id1">Introduction</a>
</li> | 8 <li><a class="reference internal" href="#introduction" id="id1">Introduction</a>
</li> |
9 <li><p class="first"><a class="reference internal" href="#platforms" id="id2">Pl
atforms</a></p> | 9 <li><p class="first"><a class="reference internal" href="#platforms" id="id2">Pl
atforms</a></p> |
10 <ul class="small-gap"> | 10 <ul class="small-gap"> |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 glibc subfolders. For additional information about the parts of a Native Client | 410 glibc subfolders. For additional information about the parts of a Native Client |
411 application, see <a class="reference internal" href="/native-client/devguide/cod
ing/application-structure.html"><em>Application Structure</em></a>.</p> | 411 application, see <a class="reference internal" href="/native-client/devguide/cod
ing/application-structure.html"><em>Application Structure</em></a>.</p> |
412 <h3 id="using-the-debuggers">Using the debuggers</h3> | 412 <h3 id="using-the-debuggers">Using the debuggers</h3> |
413 <p>PPAPI plugins are built natively by Visual Studio’s compiler (MSBuild), and | 413 <p>PPAPI plugins are built natively by Visual Studio’s compiler (MSBuild), and |
414 work with Visual Studio’s debugger in the usual way. You can set breakpoints in | 414 work with Visual Studio’s debugger in the usual way. You can set breakpoints in |
415 the Visual Studio source code files before you begin debugging, and on-the-fly | 415 the Visual Studio source code files before you begin debugging, and on-the-fly |
416 while running the program.</p> | 416 while running the program.</p> |
417 <p>NaCl32 and NaClARM executables (.nexe files) cannot be run or debugged from | 417 <p>NaCl32 and NaClARM executables (.nexe files) cannot be run or debugged from |
418 Visual Studio.</p> | 418 Visual Studio.</p> |
419 <p>NaCl64 executables (.nexe files) are compiled using one of the Native Client | 419 <p>NaCl64 executables (.nexe files) are compiled using one of the Native Client |
420 toolchains in the SDK, which create an <a class="reference external" href="`http
://en.wikipedia.org/wiki/Executable_and_Linkable_Format">ELF-formatted</a> execu
table. To | 420 toolchains in the SDK, which create an <a class="reference external" href="http:
//en.wikipedia.org/wiki/Executable_and_Linkable_Format">ELF-formatted</a> execut
able. To |
421 debug a running .nexe you must use nacl-gdb, which is a command line debugger | 421 debug a running .nexe you must use nacl-gdb, which is a command line debugger |
422 that is not directly integrated with Visual Studio. When you start a debugging | 422 that is not directly integrated with Visual Studio. When you start a debugging |
423 session running from a NaCl64 platform, Visual Studio automatically launches | 423 session running from a NaCl64 platform, Visual Studio automatically launches |
424 nacl-gdb for you and attaches it to the nexe. Breakpoints that you set in | 424 nacl-gdb for you and attaches it to the nexe. Breakpoints that you set in |
425 Visual Studio before you start debugging are transferred to nacl-gdb | 425 Visual Studio before you start debugging are transferred to nacl-gdb |
426 automatically. During a NaCl debugging session you can only use nacl-gdb | 426 automatically. During a NaCl debugging session you can only use nacl-gdb |
427 commands.</p> | 427 commands.</p> |
428 <p>The PNaCl platform generates a .pexe file. When you run the debugger add-in | 428 <p>The PNaCl platform generates a .pexe file. When you run the debugger add-in |
429 translates the .pexe file to a .nexe file and runs the resulting binary with | 429 translates the .pexe file to a .nexe file and runs the resulting binary with |
430 nacl-gdb attached.</p> | 430 nacl-gdb attached.</p> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 </dl> | 508 </dl> |
509 <h4 id="nacl64-platform">NaCl64 Platform</h4> | 509 <h4 id="nacl64-platform">NaCl64 Platform</h4> |
510 <dl class="docutils"> | 510 <dl class="docutils"> |
511 <dt>Run the Native Client Module in the NaCl64 platform</dt> | 511 <dt>Run the Native Client Module in the NaCl64 platform</dt> |
512 <dd>You are still running the STEP6 code, but as a Native Client module rather | 512 <dd>You are still running the STEP6 code, but as a Native Client module rather |
513 than a Pepper plugin.</dd> | 513 than a Pepper plugin.</dd> |
514 </dl> | 514 </dl> |
515 </section> | 515 </section> |
516 | 516 |
517 {{/partials.standard_nacl_article}} | 517 {{/partials.standard_nacl_article}} |
OLD | NEW |