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"

  • 相关阅读:
    vue-搜索功能-实时监听搜索框的输入,N毫秒请求一次数据
    vue-注册全局过滤器
    vue-nuxt--切换布局文件
    vue.js 分页加载,向上滑动,依次加载数据。
    Vue.js项目引入less文件报错解决
    小程序/js监听输入框验证金额
    React 安装
    类垂直站点插件实现与分享
    多维度论怎样在日常中提升
    node.js的安装环境搭建
  • 原文地址:https://www.cnblogs.com/taoxu0903/p/919970.html
Copyright © 2011-2022 走看看