Analyze Mozilla code's "seven weapons"

Source: Internet
Author: User
Tags seamonkey thunderbird email
Weapon 1: Armor Piercing source insight
Website: http://www.sourceinsight.com/
The source insight tool is for analysis Source code Powerful engineering weapon! With it, there are more sources Code File is not afraid, it can help you go to "go to definition" and "find references" just like using Visual Studio ". The syntax prompt of source insight is more handsome than ide. It helps you understand the relationship between source code files and directories as quickly as possible. It is really a powerful tool for getting into the enemy camp.

Weapon 2: assault rifle AK47 editplus
Website: http://www.editplus.com/
The lightweight text editor isProgramA soldier's essential weapon is like a assault rifle on the soldier's hand. The programmer's requirements for the text editor are similar to those of soldiers: 1) very easy to use (indent, grammar highlighted); 2) strong and durable (don't crash); 3) lightweight (refined and effective); there are many text editors: Ultra edit, notepad ++, editplus, and so on. However, the ultra edit license is extremely expensive. The authors of notepad ++ are also said to support Taiwan independence. The reason why I chose editplus is that the author is very generous. After the trial expires, I will only prompt when I start editplus, features are not discounted. Another reason is that editplus has the automatic saving function. When saving the current content, the content before modification is automatically saved as the file name. bak file, so you do not have to worry about code correction and error.

Weapon 3: cygwin
Website: http://www.cygwin.com
Like open-source projects such as WebKit, Mozilla supports multiple platforms. Compiling code that supports multiple platforms in Windows depends on cygwin, the old man. Cygwin is a UNIX environment simulator on Windows. In addition to the Unix shell, there are countless tools such as Perl, GCC, Gzip, and 7z. Compiling the Mozilla project depends on it. Grain and grass are not active. To compile the Mozilla Project (either Firefox or SeaMonkey), cygwin must be installed first.

Weapon 4: Telescope debugview
Website: http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
You know, there is no way to debug the Mozilla project at the breakpoint, and you must be dumpfounded when you are familiar with Visual Studio. To track program execution paths and variable values and determine whether the modified Code runs well, outputdebugstring can only be used for output. With debugview, we can view output results of outputdebugstring. Know yourself and know what you want to do. No telescope is enough!
Weapon 5: Hand Ray mozilla-build
Website: http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.4.exe
Mozilla-build is an integrated toolkit that integrates third-party Lib, shell script, NSIs installer, and so on. Mozilla is a lightweight and powerful weapon designed for the battlefield. With it, you don't have to search for and compile third-party function engineering libraries on the Internet. My favorite option is Windows Shell batch processing. Click it to set all the environment variables, which is very convenient. Mozilla-build saves me a lot of trouble during compilation.

Weapon 6: Visual Studio
Website: http://www.microsoft.com/vs
Visual Studio is not familiar with it, and plays an incomparable role in the battlefield. Compile the XPCOM component for Mozilla and test local code by using Visual Studio. With the gecko SDK released by Mozilla, it is easy to go beyond these traps. In the source code of the Mozilla project, I also found a certain number of test code written in Visual C ++ MFC. Visual Studio is widely recognized for its ease of use.

Weapon 7: Bing Shu programming Firefox
Website: http://rapidshare.com/files/53641720/Programming_Firefox.rar
XUL technology is Mozilla's interface customization technology through XML and JavaScript. XUL allows you to generate powerful and flexible interfaces for Firefox, SeaMonkey, and other applications. XUL can also be compiled separately and put into our own applications. This book introduces Mozilla's XUL technology in detail and allows you to easily write Firefox extension using XUL technology. The famous Firefox Web Developer extension is implemented based on XUL technology.

With these seven weapons, it is very easy to analyze and rewrite Mozilla code.

Note:
The Mozilla project is fully managed by the Mozilla Foundation. The Mozilla project is developed by Mozilla, a wholly-owned subsidiary of the Foundation. The Mozilla project contains many applications:
Firefox Web Browser
Fennec Mobile Embedded browser
Thunderbird email client
Combination of Seamonkey browser with mail client and other web tools
And so on

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.