OLD | NEW |
1 .. _devcycle-vs-addin: | 1 .. _devcycle-vs-addin: |
2 | 2 |
3 ############################ | 3 ############################ |
4 Debugging with Visual Studio | 4 Debugging with Visual Studio |
5 ############################ | 5 ############################ |
6 | 6 |
7 | 7 |
8 .. contents:: Table Of Contents | 8 .. contents:: Table Of Contents |
9 :local: | 9 :local: |
10 :backlinks: none | 10 :backlinks: none |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 PPAPI plugins are built natively by Visual Studio’s compiler (MSBuild), and | 478 PPAPI plugins are built natively by Visual Studio’s compiler (MSBuild), and |
479 work with Visual Studio’s debugger in the usual way. You can set breakpoints in | 479 work with Visual Studio’s debugger in the usual way. You can set breakpoints in |
480 the Visual Studio source code files before you begin debugging, and on-the-fly | 480 the Visual Studio source code files before you begin debugging, and on-the-fly |
481 while running the program. | 481 while running the program. |
482 | 482 |
483 NaCl32 and NaClARM executables (.nexe files) cannot be run or debugged from | 483 NaCl32 and NaClARM executables (.nexe files) cannot be run or debugged from |
484 Visual Studio. | 484 Visual Studio. |
485 | 485 |
486 NaCl64 executables (.nexe files) are compiled using one of the Native Client | 486 NaCl64 executables (.nexe files) are compiled using one of the Native Client |
487 toolchains in the SDK, which create an `ELF-formatted | 487 toolchains in the SDK, which create an `ELF-formatted |
488 <`http://en.wikipedia.org/wiki/Executable_and_Linkable_Format>`_ executable. To | 488 <http://en.wikipedia.org/wiki/Executable_and_Linkable_Format>`_ executable. To |
489 debug a running .nexe you must use nacl-gdb, which is a command line debugger | 489 debug a running .nexe you must use nacl-gdb, which is a command line debugger |
490 that is not directly integrated with Visual Studio. When you start a debugging | 490 that is not directly integrated with Visual Studio. When you start a debugging |
491 session running from a NaCl64 platform, Visual Studio automatically launches | 491 session running from a NaCl64 platform, Visual Studio automatically launches |
492 nacl-gdb for you and attaches it to the nexe. Breakpoints that you set in | 492 nacl-gdb for you and attaches it to the nexe. Breakpoints that you set in |
493 Visual Studio before you start debugging are transferred to nacl-gdb | 493 Visual Studio before you start debugging are transferred to nacl-gdb |
494 automatically. During a NaCl debugging session you can only use nacl-gdb | 494 automatically. During a NaCl debugging session you can only use nacl-gdb |
495 commands. | 495 commands. |
496 | 496 |
497 The PNaCl platform generates a .pexe file. When you run the debugger add-in | 497 The PNaCl platform generates a .pexe file. When you run the debugger add-in |
498 translates the .pexe file to a .nexe file and runs the resulting binary with | 498 translates the .pexe file to a .nexe file and runs the resulting binary with |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 functional code that is running is the same as STEP5. | 599 functional code that is running is the same as STEP5. |
600 | 600 |
601 NaCl64 Platform | 601 NaCl64 Platform |
602 ^^^^^^^^^^^^^^^ | 602 ^^^^^^^^^^^^^^^ |
603 | 603 |
604 Run the Native Client Module in the NaCl64 platform | 604 Run the Native Client Module in the NaCl64 platform |
605 You are still running the STEP6 code, but as a Native Client module rather | 605 You are still running the STEP6 code, but as a Native Client module rather |
606 than a Pepper plugin. | 606 than a Pepper plugin. |
607 | 607 |
608 .. TODO(sbc): port reference section? | 608 .. TODO(sbc): port reference section? |
OLD | NEW |