OLD | NEW |
1 .. _sdk-examples-2: | 1 .. _sdk-examples-2: |
2 | 2 |
3 Running the SDK Examples | 3 Running the SDK Examples |
4 ======================== | 4 ======================== |
5 | 5 |
6 Every Native Client SDK bundle comes with a folder of example applications. | 6 Every Native Client SDK bundle comes with a folder of example applications. |
7 Each example demonstrates one or two key Native Client programming concepts. | 7 Each example demonstrates one or two key Native Client programming concepts. |
8 After you've :doc:`downloaded the SDK <download>`, follow the instructions | 8 After you've :doc:`downloaded the SDK <download>`, follow the instructions |
9 on this page to build and run the examples. | 9 on this page to build and run the examples. |
10 | 10 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 ``TOOLCHAIN`` and ``CONFIG`` parameters to make:: | 210 ``TOOLCHAIN`` and ``CONFIG`` parameters to make:: |
211 | 211 |
212 $ make run TOOLCHAIN=pnacl CONFIG=Debug | 212 $ make run TOOLCHAIN=pnacl CONFIG=Debug |
213 | 213 |
214 .. _run_sdk_examples_as_packaged: | 214 .. _run_sdk_examples_as_packaged: |
215 | 215 |
216 Run the SDK examples as packaged apps | 216 Run the SDK examples as packaged apps |
217 ------------------------------------- | 217 ------------------------------------- |
218 | 218 |
219 Each example can also be launched as a packaged app. For more information about | 219 Each example can also be launched as a packaged app. For more information about |
220 using Native Client for packaged apps, see :ref:`Packaged appliction | 220 using Native Client for packaged apps, see :ref:`Packaged application |
221 <distributing_packaged>`. For general information about packaged apps, see the | 221 <distributing_packaged>`. For general information about packaged apps, see the |
222 `Chrome apps documentation </apps/about_apps>`_. | 222 `Chrome apps documentation </apps/about_apps>`_. |
223 | 223 |
224 Some Pepper features, such as TCP/UDP socket access, are only allowed in | 224 Some Pepper features, such as TCP/UDP socket access, are only allowed in |
225 packaged apps. The examples that use these features must be run as packaged | 225 packaged apps. The examples that use these features must be run as packaged |
226 apps, by using the ``make run_package`` command:: | 226 apps, by using the ``make run_package`` command:: |
227 | 227 |
228 $ make run_package | 228 $ make run_package |
229 | 229 |
230 You can use ``TOOLCHAIN`` and ``CONFIG`` parameters as above to run with a | 230 You can use ``TOOLCHAIN`` and ``CONFIG`` parameters as above to run with a |
(...skipping 27 matching lines...) Expand all Loading... |
258 | 258 |
259 At this point, you can use the standard GDB commands to debug your NaCl module. | 259 At this point, you can use the standard GDB commands to debug your NaCl module. |
260 The most common commands you will use to debug are ``continue``, ``step``, | 260 The most common commands you will use to debug are ``continue``, ``step``, |
261 ``next``, ``break`` and ``backtrace``. See :doc:`Debugging | 261 ``next``, ``break`` and ``backtrace``. See :doc:`Debugging |
262 <../devguide/devcycle/debugging>` for more information about debugging a Native
Client | 262 <../devguide/devcycle/debugging>` for more information about debugging a Native
Client |
263 application. | 263 application. |
264 | 264 |
265 | 265 |
266 .. |menu-icon| image:: /images/menu-icon.png | 266 .. |menu-icon| image:: /images/menu-icon.png |
267 .. |gear-icon| image:: /images/gear-icon.png | 267 .. |gear-icon| image:: /images/gear-icon.png |
OLD | NEW |