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 30 matching lines...) Expand all Loading... |
41 <li><a class="reference internal" href="#porting-windows-applications-to-native-
client-in-visual-studio" id="id24">Porting Windows applications to Native Client
in Visual Studio</a></li> | 41 <li><a class="reference internal" href="#porting-windows-applications-to-native-
client-in-visual-studio" id="id24">Porting Windows applications to Native Client
in Visual Studio</a></li> |
42 </ul> | 42 </ul> |
43 </li> | 43 </li> |
44 </ul> | 44 </ul> |
45 | 45 |
46 </div><p>Whether you’re porting an existing project or starting from scrat
ch, the Native | 46 </div><p>Whether you’re porting an existing project or starting from scrat
ch, the Native |
47 Client Visual Studio add-in makes it easier to set up, build, run and debug | 47 Client Visual Studio add-in makes it easier to set up, build, run and debug |
48 your Native Client app by integrating the Native Client SDK development tools | 48 your Native Client app by integrating the Native Client SDK development tools |
49 into the Visual Studio environment.</p> | 49 into the Visual Studio environment.</p> |
50 <aside class="note"> | 50 <aside class="note"> |
51 The Native Client add-in requires Visual Studio 2010 with Service Pack 1. No | 51 The Native Client add-in requires Visual Studio 2012 or Visual Studio 2010 |
52 other versions of Visual Studio are currently supported. Visual Studio | 52 with Service Pack 1. No other versions of Visual Studio are currently |
53 Express is also not supported. | 53 supported. Visual Studio Express is also not supported. |
54 </aside> | 54 </aside> |
55 <h2 id="introduction">Introduction</h2> | 55 <h2 id="introduction">Introduction</h2> |
56 <p>The Native Client add-in for Visual Studio helps you develop your application | 56 <p>The Native Client add-in for Visual Studio helps you develop your application |
57 more efficiently in many ways:</p> | 57 more efficiently in many ways:</p> |
58 <ul class="small-gap"> | 58 <ul class="small-gap"> |
59 <li>Organize and maintain your code as a Visual Studio project.</li> | 59 <li>Organize and maintain your code as a Visual Studio project.</li> |
60 <li>Iteratively write and test your application more easily. Visual Studio | 60 <li>Iteratively write and test your application more easily. Visual Studio |
61 handles the details of launching a web server to serve your module and run | 61 handles the details of launching a web server to serve your module and run |
62 the module in Chrome with a debugger attached.</li> | 62 the module in Chrome with a debugger attached.</li> |
63 <li>Compile your module into a dynamically-linked library (DLL) using Visual | 63 <li>Compile your module into a dynamically-linked library (DLL) using Visual |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 Native Client SDK to transform the .pexe file into a NaCl64 .nexe file and runs | 144 Native Client SDK to transform the .pexe file into a NaCl64 .nexe file and runs |
145 it as if you were working with a NaCl64 platform.</p> | 145 it as if you were working with a NaCl64 platform.</p> |
146 <aside class="note"> | 146 <aside class="note"> |
147 Note: The PNaCl platform currently supports the newlib toolchain only. | 147 Note: The PNaCl platform currently supports the newlib toolchain only. |
148 </aside> | 148 </aside> |
149 <h2 id="installing-the-add-in">Installing the add-in</h2> | 149 <h2 id="installing-the-add-in">Installing the add-in</h2> |
150 <p>In order to use the Native Client Visual Studio add-in, your development | 150 <p>In order to use the Native Client Visual Studio add-in, your development |
151 environment should include:</p> | 151 environment should include:</p> |
152 <ul class="small-gap"> | 152 <ul class="small-gap"> |
153 <li>A 64-bit version of Windows Vista or Windows 7.</li> | 153 <li>A 64-bit version of Windows Vista or Windows 7.</li> |
154 <li>Visual Studio 2010 with Service Pack 1.</li> | 154 <li>Visual Studio 2012 or Visual Service 2010 with Service Pack 1.</li> |
155 <li><a class="reference external" href="https://www.google.com/intl/en/chrome/br
owser/">Chrome</a> version 23 or | 155 <li><a class="reference external" href="https://www.google.com/intl/en/chrome/br
owser/">Chrome</a> version 23 or |
156 greater. You can choose to develop using the latest <a class="reference external
" href="https://www.google.com/intl/en/chrome/browser/canary.html">canary</a> bu
ild of | 156 greater. You can choose to develop using the latest <a class="reference external
" href="https://www.google.com/intl/en/chrome/browser/canary.html">canary</a> bu
ild of |
157 Chrome, running the canary version side-by-side with (and separately from) | 157 Chrome, running the canary version side-by-side with (and separately from) |
158 your regular version of Chrome.</li> | 158 your regular version of Chrome.</li> |
159 <li><a class="reference internal" href="/native-client/sdk/download.html"><em>Th
e Native Client SDK</em></a> with the <code>pepper_23</code> | 159 <li><a class="reference internal" href="/native-client/sdk/download.html"><em>Th
e Native Client SDK</em></a> with the <code>pepper_23</code> |
160 bundle or greater. The version of Chrome that you use must be equal or | 160 bundle or greater. The version of Chrome that you use must be equal or |
161 greater than the version of the SDK bundle.</li> | 161 greater than the version of the SDK bundle.</li> |
162 </ul> | 162 </ul> |
163 <h3 id="set-environment-variables">Set environment variables</h3> | 163 <h3 id="set-environment-variables">Set environment variables</h3> |
164 <p>Before you run the installer you must define two Windows environment variable
s. | 164 <p>Before you run the installer you must define two Windows environment variable
s. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 the installer again later to add the PPAPI platform.</p> | 212 the installer again later to add the PPAPI platform.</p> |
213 <p>You can usually run the installer successfully with no arguments. The new | 213 <p>You can usually run the installer successfully with no arguments. The new |
214 platforms are installed in <code>C:\Program Files | 214 platforms are installed in <code>C:\Program Files |
215 (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms</code>.</p> | 215 (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms</code>.</p> |
216 <p>In some cases system resources may not be in their default locations. You mig
ht | 216 <p>In some cases system resources may not be in their default locations. You mig
ht |
217 need to use these command line arguments when you run <code>install.bat</code>:<
/p> | 217 need to use these command line arguments when you run <code>install.bat</code>:<
/p> |
218 <ul class="small-gap"> | 218 <ul class="small-gap"> |
219 <li>The MSBuild folder is assumed to be at <code>C:\Program Files (x86)\MSBuild<
/code>. | 219 <li>The MSBuild folder is assumed to be at <code>C:\Program Files (x86)\MSBuild<
/code>. |
220 You can specify an alternate path with the flag <code>--ms-build-path=<path&g
t;</code>. | 220 You can specify an alternate path with the flag <code>--ms-build-path=<path&g
t;</code>. |
221 The installer assumes Visual Studio has created a user folder at</li> | 221 The installer assumes Visual Studio has created a user folder at</li> |
222 <li><code>%USERPROFILE%\My Documents\Visual Studio 2010</code>. You can specify
an | 222 <li>The addin itself is normally installed in <code>%USERPROFILE%\My Documents\V
isual |
223 alternate path with the flag <code>--vsuser-path=path</code>.</li> | 223 Studio 2012</code> (or 2010 for Visual Studio 2010). You can specify alternate |
| 224 paths with the <code>--vsuser-path=<path></code> flag.</li> |
224 </ul> | 225 </ul> |
225 <p>From time to time an update to the Visual Studio add-in may become available. | 226 <p>From time to time an update to the Visual Studio add-in may become available. |
226 Updates are performed just like an installation. Download the new add-in using | 227 Updates are performed just like an installation. Download the new add-in using |
227 naclsdk update and run <code>install.bat</code> as administrator.</p> | 228 naclsdk update and run <code>install.bat</code> as administrator.</p> |
228 <p>To uninstall the add-in, run <code>install.bat</code> as administrator and ad
d the | 229 <p>To uninstall the add-in, run <code>install.bat</code> as administrator and ad
d the |
229 <code>--uninstall</code> flag. You’ll need to run the Command Prompt progr
am as | 230 <code>--uninstall</code> flag. You’ll need to run the Command Prompt progr
am as |
230 administrator in order to add the flag. Go the to the Windows start menu, | 231 administrator in order to add the flag. Go the to the Windows start menu, |
231 search for “Command Prompt,” right click on the program and run it a
s | 232 search for “Command Prompt,” right click on the program and run it a
s |
232 administrator.</p> | 233 administrator.</p> |
233 <p>You can verify that the add-in has been installed and determine its version b
y | 234 <p>You can verify that the add-in has been installed and determine its version b
y |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 </dl> | 508 </dl> |
508 <h4 id="nacl64-platform">NaCl64 Platform</h4> | 509 <h4 id="nacl64-platform">NaCl64 Platform</h4> |
509 <dl class="docutils"> | 510 <dl class="docutils"> |
510 <dt>Run the Native Client Module in the NaCl64 platform</dt> | 511 <dt>Run the Native Client Module in the NaCl64 platform</dt> |
511 <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 |
512 than a Pepper plugin.</dd> | 513 than a Pepper plugin.</dd> |
513 </dl> | 514 </dl> |
514 </section> | 515 </section> |
515 | 516 |
516 {{/partials.standard_nacl_article}} | 517 {{/partials.standard_nacl_article}} |
OLD | NEW |