<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4320649934595821552</id><updated>2024-03-13T15:44:29.071-07:00</updated><category term="visual studio 2010"/><category term="browser"/><category term="build"/><category term="chromium"/><category term="debug"/><category term="firefox"/><category term="google chrome"/><category term="mozilla"/><category term="windows"/><title type='text'>Anton&#39;s Tech Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://antonbarua.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4320649934595821552/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://antonbarua.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anton</name><uri>http://www.blogger.com/profile/04593077300140466769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4320649934595821552.post-6078659466174566496</id><published>2012-03-03T08:36:00.017-08:00</published><updated>2012-07-24T09:23:50.522-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="browser"/><category scheme="http://www.blogger.com/atom/ns#" term="build"/><category scheme="http://www.blogger.com/atom/ns#" term="chromium"/><category scheme="http://www.blogger.com/atom/ns#" term="google chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2010"/><title type='text'>Build Chromium in Windows using Visual Studio 2010</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;This is the second post in a series of &quot;Browser development&quot; articles. In this one, I will outline the basic steps necessary to get a working build of the open source Chromium browser (known as Google Chrome) on Windows. For details about building and debugging Firefox, head over to &lt;/span&gt;&lt;a href=&quot;http://antonbarua.blogspot.com/2012/01/debugging-firefox-in-windows-with.html&quot; style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;Debugging Firefox in Windows with VS2010&lt;/a&gt;&lt;span style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
First, you will need the prerequisites. Chromium will require a hefty amount of &quot;juice&quot; from your hardware. The minimum required RAM is 8GB, but more is better. Here are a few &quot;build environment&quot; recommendations:&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
1. Get a &quot;true&quot; multicore PC, such as one having an Intel &quot;Core&quot; series processor (i7 would be great :))&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
2. Have at least 8GB RAM. I&#39;ve seen people talking about still needing more, as much as 16GB!&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
3. Better if you build on a separate HDD than your Windows installation. YES, THAT MEANS ON A DIFFERENT PHYSICAL DISK, NOT A DIFFERENT PARTITION.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
4. Disable your Anti-virus, or at least, pause it.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
Now on to the actual build process. We start by downloading a few stuff that are mandatory:&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
1. Like Mozilla&#39;s &lt;a href=&quot;http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe&quot;&gt;MozillaBuild&lt;/a&gt;, Chrome developers have also made a custom set of tools that basically does the pre-build processing of the source tree. So you need to download the &lt;a href=&quot;http://www.chromium.org/developers/how-tos/install-depot-tools&quot;&gt;depot_tools&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
2. Download and install &lt;a href=&quot;https://www.microsoft.com/downloads/en/details.aspx?FamilyID=75568aa6-8107-475d-948a-ef22627e57a5&quot;&gt;VS2010SP1&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
3. Download and install &lt;a href=&quot;https://www.microsoft.com/downloads/en/details.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b&quot;&gt;Windows7.1SDK&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
4. Download and install the &lt;a href=&quot;http://msdn.microsoft.com/en-us/directx/default.aspx&quot;&gt;DirectX SDK&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
Assuming that the above steps went smoothly, lets move on to the real deal. We will be building Chromium from a tarball download, rather than an SVN checkout.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
1. Download the latest Chromium tarball from here: &lt;a href=&quot;http://chromium-browser-source.commondatastorage.googleapis.com/chromium_tarball.html&quot;&gt;Chromium Source tarball&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
2. Extract the source using a zip utility, such as 7-zip to a folder of your choice (e.g., C:\chromium). CAUTION: you need ample free space, the extraction takes about 4.5 GB.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
3. Assuming you have extracted the depot_tools downloaded earlier to: C:\depot_tools, set the PATH environment variable of Windows (Start Menu&amp;gt;Computer&amp;gt;Properties&amp;gt;Advanced System Settings&amp;gt;Advanced&amp;gt;Environment Variables&amp;gt;System Variables&amp;gt;PATH&amp;gt;Edit). Append this line to the end of your path: &quot;C:\depot_tools\&quot;. You may need to restart your computer for updating the PATH.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
4. Open command prompt. Type echo %USERPROFILE%. Head over to the folder and create a .gyp folder there (note the beginning dot). Windows will not let you build a folder with a beginning dot. So, from command prompt, cd to the %USERPROFILE% folder and type: mkdir .gyp. In the .gyp folder, create a blank text file and name it include.gypi.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
5. Paste these following lines to include.gypi:&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
{&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;variables&#39;: {&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&#39;msbuild_toolset&#39;: &#39;Windows7.1SDK&#39;,&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&#39;chromium_win_pch&#39;: 1,&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&#39;component&#39;: &#39;shared_library&#39;,&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;},&lt;br /&gt;} &lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: normal; text-align: left;&quot;&gt;
&lt;span style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;6. In command prompt, type: echo %LOCALAPPDATA%. Head over to the folder. You will see two files: &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;Microsoft.Cpp.Win32.user.props and &lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;Microsoft.Cpp.x64.user.props. Open notepad (or any text editor) in &quot;administrator mode&quot;. Then edit these two files by appending these lines in the &amp;lt;Project&amp;gt; &lt;project&gt;node : &lt;/project&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;propertygroup&gt;&amp;lt;PropertyGroup&amp;gt;&lt;/propertygroup&gt;&lt;/span&gt;    &lt;includepath&gt;$(DXSDK_DIR)\include;$(IncludePath)&lt;/includepath&gt;    &lt;librarypath&gt;$(DXSDK_DIR)\lib\x86;$(LibraryPath)&lt;/librarypath&gt; &lt;/div&gt;
&lt;div style=&quot;font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&amp;lt;/PropertyGroup&amp;gt; &lt;/div&gt;
&lt;div style=&quot;font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
7. From the command prompt, go to the Chromium source directory where you extracted the source files. cd to the src directory (e.g., ~\chromium\src). Run the following commands:&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
a) set GYP_MSVS_VERSION=2010&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
b) gclient sync --force&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
c) gclient runhooks --force&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
You should now have a chrome.sln (visual studio solution file) in the chrome\ folder of the source tree. &lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
1. Open the sln file in VS2010.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
2. IMPORTANT: set the maximum number of parallel builds (tools&amp;gt;options&amp;gt;projects and solutions&amp;gt;build and run&amp;gt;maximum number of parallel builds) to this value NUMBER_OF_CORES_OF_YOUR_PROCESSOR-1 (this is not a hard rule, btw). This is supposed to speed up the build process.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
3.  Build Chromium from VS2010. Build times will vary, but will mostly be anything from 30 mins (really fast PC) to 2.5hrs.&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;
4. Test/debug your build from VS2010.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://antonbarua.blogspot.com/feeds/6078659466174566496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antonbarua.blogspot.com/2012/03/building-chromium-in-windows-using.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4320649934595821552/posts/default/6078659466174566496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4320649934595821552/posts/default/6078659466174566496'/><link rel='alternate' type='text/html' href='http://antonbarua.blogspot.com/2012/03/building-chromium-in-windows-using.html' title='Build Chromium in Windows using Visual Studio 2010'/><author><name>Anton</name><uri>http://www.blogger.com/profile/04593077300140466769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4320649934595821552.post-1395811456265759387</id><published>2012-01-09T10:34:00.000-08:00</published><updated>2012-01-17T20:13:59.518-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debug"/><category scheme="http://www.blogger.com/atom/ns#" term="firefox"/><category scheme="http://www.blogger.com/atom/ns#" term="mozilla"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Debugging Firefox in Windows with VS2010</title><content type='html'>&lt;div style=&quot;text-align: left; &quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;&lt;b&gt;Download and Make a Debug Build&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;1. Download Mozilla source from &lt;a href=&quot;http://hg.mozilla.org/mozilla-central/&quot;&gt;http://hg.mozilla.org/mozilla-central/&lt;/a&gt; (choose files, then click on zip). Alternatively, you can follow the instructions at &lt;a href=&quot;https://developer.mozilla.org/en/Download_Mozilla_Source_Code&quot;&gt;https://developer.mozilla.org/en/Download_Mozilla_Source_Code&lt;/a&gt; which leads to Mozilla&#39;s FTP server &lt;a href=&quot;ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/9.0/source/&quot;&gt;ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/9.0/source/&lt;/a&gt; . (first link is nightly build, second is release build).&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;2. Extract the source code. 7-zip works best. (e.g. to C:\FFBuild\mozilla-release).&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;3. Download and install DirectX SDK 10. &lt;a href=&quot;https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Windows_Prerequisites#Microsoft_DirectX.C2.A0SDK&quot;&gt;https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Windows_Prerequisites#Microsoft_DirectX.C2.A0SDK&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;4. Download and install MozillaBuild. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;&lt;a href=&quot;https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Windows_Prerequisites#MozillaBuild_.2F_Pymake&quot;&gt;https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Windows_Prerequisites#MozillaBuild_.2F_Pymake&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;5. If you have VS2010 it comes bundled with Windows SDK.  No worries here.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;6. Create a .mozconfig file in the root directory of the source code (mozilla-central or mozilla-release). This file will contain the build configuration for the source. For our purposes, we have to do the &quot;debug&quot; build. I followed the .mozconfig from &lt;a href=&quot;https://developer.mozilla.org/en/Configuring_Build_Options#Firefox.2C_Debugging_Build&quot;&gt;https://developer.mozilla.org/en/Configuring_Build_Options#Firefox.2C_Debugging_Build&lt;/a&gt; . (Note: windows won&#39;t allow creating .mozconfig file, so create a text file new.txt, go to cmd, and from cmd rename the file to .mozconfig like this: a) cd to root dir of source code, b) rename new.txt .mozconfig).&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;border-collapse: separate; text-align: -webkit-auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; &quot;&gt;7. For windows, use of pymake instead of make is advocated here &lt;a href=&quot;https://developer.mozilla.org/en/pymake&quot;&gt;https://developer.mozilla.org/en/pymake&lt;/a&gt; . Follow those instructions to start the build (might take upto 2 hours). (Note: to make builds faster, edit this line in the .mozconfig file : &lt;span style=&quot;white-space: pre; &quot;&gt;mk_add_options MOZ_MAKE_FLAGS=&quot;-jN&quot;,&lt;/span&gt; &lt;span style=&quot;white-space: pre;&quot;&gt;edit N to be twice the number of your processor cores. For example, for a 4 core processor, replace N with 8).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left; &quot;&gt;&lt;b&gt;&lt;span&gt;Debugging in Visual Studio&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;8. If the build is successful, there should be a firefox.exe at [mozilla-source]\ff-dbg\dist\bin . Test it to see if it works.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;9. Start VS2010. Go to File&amp;gt;Open&amp;gt;Project/Solution&amp;gt;[mozilla-source]\ff-dbg\dist\bin\firefox.exe .&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;10. Right click on firefox.exe in the Solution Explorer and go to Properties. Edit Environment Variable to add &lt;strong&gt;MOZ_NO_REMOTE=1. &lt;/strong&gt;(&lt;a href=&quot;https://cs.senecac.on.ca/~david.humphrey/writing/debugging-firefox.html&quot;&gt;https://cs.senecac.on.ca/~david.humphrey/writing/debugging-firefox.html&lt;/a&gt; ).&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;11. Open any file from the source code directory (&lt;b&gt;CAUTION: NOT FROM THE ff-dbg DIRECTORY&lt;/b&gt;). Set a debug point. For example: line 143 of [mozilla-source]\caps\src\nScriptSecurityManager.cpp.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;12. Right click on firefox.exe and Debug&amp;gt;Start New Instance.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://antonbarua.blogspot.com/feeds/1395811456265759387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antonbarua.blogspot.com/2012/01/debugging-firefox-in-windows-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4320649934595821552/posts/default/1395811456265759387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4320649934595821552/posts/default/1395811456265759387'/><link rel='alternate' type='text/html' href='http://antonbarua.blogspot.com/2012/01/debugging-firefox-in-windows-with.html' title='Debugging Firefox in Windows with VS2010'/><author><name>Anton</name><uri>http://www.blogger.com/profile/04593077300140466769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>