OLD | NEW |
1 .. _devcycle-debugging: | 1 .. _devcycle-debugging: |
2 | 2 |
3 ######### | 3 ######### |
4 Debugging | 4 Debugging |
5 ######### | 5 ######### |
6 | 6 |
7 This document describes tools and techniques you can use to debug, monitor, | 7 This document describes tools and techniques you can use to debug, monitor, |
8 and measure your application's performance. | 8 and measure your application's performance. |
9 | 9 |
10 .. contents:: Table Of Contents | 10 .. contents:: Table Of Contents |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 debugging (this is more of a problem with the PNaCl/LLVM toolchain than | 238 debugging (this is more of a problem with the PNaCl/LLVM toolchain than |
239 with GCC). | 239 with GCC). |
240 | 240 |
241 Once you have built a non-stable debug copy of the pexe, list the URL of | 241 Once you have built a non-stable debug copy of the pexe, list the URL of |
242 that copy in your application's manifest file: | 242 that copy in your application's manifest file: |
243 | 243 |
244 .. naclcode:: | 244 .. naclcode:: |
245 | 245 |
246 { | 246 { |
247 "program": { | 247 "program": { |
248 "pnacl-translate": { | 248 "portable": { |
249 "url": "release_version.pexe", | 249 "pnacl-translate": { |
250 "optlevel": 2 | 250 "url": "release_version.pexe", |
251 }, | 251 "optlevel": 2 |
252 "pnacl-debug": { | 252 }, |
253 "url": "debug_version.bc", | 253 "pnacl-debug": { |
254 "optlevel": 0 | 254 "url": "debug_version.bc", |
| 255 "optlevel": 0 |
| 256 } |
255 } | 257 } |
256 } | 258 } |
257 } | 259 } |
258 | 260 |
259 Copy the ``debug_version.bc`` and ``nmf`` files to the location that | 261 Copy the ``debug_version.bc`` and ``nmf`` files to the location that |
260 your local web server serves files from. | 262 your local web server serves files from. |
261 | 263 |
262 When you run Chrome with ``--enable-nacl-debug``, Chrome will translate | 264 When you run Chrome with ``--enable-nacl-debug``, Chrome will translate |
263 and run the ``debug_version.bc`` instead of ``release_version.pexe``. | 265 and run the ``debug_version.bc`` instead of ``release_version.pexe``. |
264 Once the debug version is loaded, you are ready to :ref:`run nacl-gdb | 266 Once the debug version is loaded, you are ready to :ref:`run nacl-gdb |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 <http://www.chromium.org/nativeclient>`_ that describe how to do profiling on | 590 <http://www.chromium.org/nativeclient>`_ that describe how to do profiling on |
589 `64-bit Windows | 591 `64-bit Windows |
590 <https://sites.google.com/a/chromium.org/dev/nativeclient/how-tos/profiling-nacl
-apps-on-64-bit-windows>`_ | 592 <https://sites.google.com/a/chromium.org/dev/nativeclient/how-tos/profiling-nacl
-apps-on-64-bit-windows>`_ |
591 and `Linux | 593 and `Linux |
592 <http://www.chromium.org/nativeclient/how-tos/limited-profiling-with-oprofile-on
-x86-64>`_ | 594 <http://www.chromium.org/nativeclient/how-tos/limited-profiling-with-oprofile-on
-x86-64>`_ |
593 machines. | 595 machines. |
594 | 596 |
595 | 597 |
596 .. |menu-icon| image:: /images/menu-icon.png | 598 .. |menu-icon| image:: /images/menu-icon.png |
597 .. |puzzle| image:: /images/puzzle.png | 599 .. |puzzle| image:: /images/puzzle.png |
OLD | NEW |