zoukankan      html  css  js  c++  java
  • VS Tips (Advance part)

    1. Rename feacp.dll to disable intellisense. You will find this file in Program files: ...."Microsoft Visual Studio 8"VC"vcpackages folder.

    2. If you are still experiencing slowdowns due to .ncb file generation, try deleting the .ncb file for any solution you use, create an empty file with the same name and write protect it in both your solution directory and your %TEMP% directory. (you get some nag dialogs when you open the solution, you can ignore them. The nags may be more annoying than the residual .ncb overhead, so only implement this tip if absolutely necessary)

    3. Use your own solution with a minimum number of projects whenever possible. Keep in mind however that if you introduce a change in project dependencies you should make sure you update the official solution. If you add a dependency from project A to project B in your solution, the IDE will automatically include B.lib when linking A, even if you didn’t add the B.lib to the linker inputs for A. This can lead to a broken build when your changes are submitted. 

    4. Under Tools->Options->Projects and Solutions->VC++ Project Settings, change "Build Timing" to Yes. (You'll get a better feel for how long non-IncrediBuild compilation and linking can take.)

    5. Under Tools->Options->Debugging->Native check “Load DLL exports”. You will get better callstacks.

    6. Use optdebug.bat to move as many PDB files as possible to a subdirectory, demand load them from the debugger when you need them. you should also customize it to restore the PDB files for the modules you work on back to the lib"debug directory.
    Sample: optdebug.bat
    md X:\...\pdbs
    move X:\...\Aaa.pdb X:\...\pdbs
    Under Tools->Options->Debugging->Symbols add the folder where you moved the PDBs using the batch file in the above step. Check the option to “Search the above locations only when symbols are loaded manually” or else moving the PDBs won’t make any difference since they will always be loaded. Also add a debug location for http://msdl.microsoft.com/download/symbols , and UNCHECK it immediately. When you get into a situation where you need the callstack for some Microsoft code, check this box, start Inventor in the debugger, and walk away for a half hour while it downloads the symbols for the OS. You should uncheck this again when you want to do normal debugging. You should supply a local directory to store the downloaded symbols.

    7. You can improve debugging startup time by editing the “hosts” file under C:"WINDOWS"system32"drivers"etc and adding the entries “127.0.0.1 daddev” and “127.0.0.1 offlab”. This will prevent a network timeout when the IDE tries to local the symbols for certain dlls such as MSO.dll. You need to reboot after changing the hosts file for the changes to take effect. 

    8. Avoid stepping into certain functions that you will never need to debug (for example the overloaded new operator) by setting up the “StepOut” registry entries. Restart the IDE for this to take effect.
    [Sample: StepOut.reg]
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\NativeDE\StepOver]
    "CString StepOut"="CString.\\:\\:.*=NoStepInto"

  • 相关阅读:
    AllowsTransparency和WebBrowser兼容性问题解决方案
    webbrowser和js交互小结
    wpf数据验证实例及常用方法小结
    Scrum 冲刺第一天
    Scrum 冲刺第二天
    1625 宝石项链 大视野评测
    1082栅栏 大视野评测
    bzoj 1606: [Usaco2008 Dec]Hay For Sale 购买干草
    1639 月度开支 大视野评测
    1650 跳石子 大视野评测
  • 原文地址:https://www.cnblogs.com/taoxu0903/p/919970.html
Copyright © 2011-2022 走看看