windbg 用代理_防火墙和代理服务器

防火墙和代理服务器Firewalls and Proxy Servers

05/23/2017

本文内容

如果使用 SymSrv 来访问符号,并且计算机位于使用代理服务器的网络上,或者符号存储位于防火墙外部,则可能需要进行身份验证才能进行数据传输。If you are using SymSrv to access symbols, and your computer is on a network that uses a proxy server or the symbol store is outside your firewall, authentication may be required for data transmission to take place.

当 SymSrv 接收到身份验证请求时,调试器可以显示身份验证请求,或根据配置方式自动拒绝请求。When SymSrv receives authentication requests, the debugger can either display the authentication request or automatically refuse the request, depending on how it has been configured.

SymSrv 已集成对代理服务器的支持。SymSrv has integrated support for a proxy server. 它可以使用默认代理服务器 SymProxy,也可以使用所选的另一台代理服务器。It can either use the default proxy server, SymProxy, or it can use another proxy server of your choice.

身份验证请求Authentication Requests

可以将调试器配置为允许身份验证请求。The debugger can be configured to allow authentication requests. 当防火墙或代理服务器请求授权时,将出现一个对话框。When a firewall or proxy server requests authorization, a dialog box will appear. 在调试器可下载符号之前,必须 (通常输入一些信息) 用户名和密码。You will have to enter some sort of information (usually a user name and password) before the debugger can download symbols. 如果输入的信息不正确,则将重新显示该对话框。If you enter incorrect information, the dialog box will be redisplayed. 如果选择 " 取消 " 按钮,则对话框将消失,且不会传输任何符号信息。If you select the Cancel button, the dialog box will vanish and no symbol information will be transferred.

如果将调试器配置为拒绝所有身份验证请求,则不会显示任何对话框,并且如果需要身份验证,则不会传输任何符号。If the debugger is configured to refuse all authentication requests, no dialog box will appear, and no symbols will be transferred if authentication is required.

如果拒绝身份验证请求,或者如果调试器自动拒绝身份验证请求,则 SymSrv 将不会再进一步联系到符号存储区。If you refuse an authentication request, or if the debugger automatically refuses an authentication request, SymSrv will make no further attempts to contact the symbol store. 如果要续订 contact,必须重新启动调试会话或使用 ! symsrv close。If you wish to renew contact, you must either restart the debugging session or use !symsrv close.

注意 如果使用的是 KD 或 CDB,则 "身份验证" 对话框可能会出现在打开的窗口之后。Note If you are using KD or CDB, the authentication dialog box may appear behind an open window. 如果出现这种情况,则可能需要移动或最小化某些窗口才能找到此对话框。If this occurs, you may have to move or minimize some windows in order to find this dialog box.

在 WinDbg 中,默认情况下允许身份验证请求。In WinDbg, authentication requests are allowed by default. 默认情况下,在 KD 和 CDB 中,默认情况下会自动拒绝身份验证请求。In KD and CDB, authentication requests are automatically refused by default.

To allow authentication requests, use either !sym prompts or .symopt-0x80000. 若要拒绝所有请求,请使用 !符号提示符 symopt + 0x80000。To refuse all requests, use either !sym prompts off or .symopt+0x80000. 若要显示当前设置,请使用 !符号。To display the current setting, use !sym.

在对身份验证权限状态进行任何更改之后,必须使用 . reload.sql (重载模块) 。You must use .reload (Reload Module) after making any changes to the authentication permission status.

选择代理服务器Choosing a Proxy Server

若要为 Windows 选择默认的代理服务器,请在 "控制面板" 中打开 " Internet 选项 ",选择 " 连接 " 选项卡,然后选择 " LAN 设置 " 按钮。To select a default proxy server for Windows, open Internet Options in Control Panel, select the Connections tab, and then select the LAN Settings button. 然后,你可以输入代理服务器名称和端口号,或选择 " 高级 " 来配置多个代理服务器。You can then enter the proxy server name and port number, or select Advanced to configure multiple proxy servers. 有关更多详细信息,请参阅 Internet Explorer 的帮助文件。For more details, see Internet Explorer's help file.

若要选择要使用的特定代理服务器 symsrv,请将 _ NT _ SYMBOL _ proxy 环境变量设置为与代理服务器的名称或 IP 相同,后跟一个冒号和端口号。To select a specific proxy server for symsrv to use, set the _NT_SYMBOL_PROXY environment variable equal to the name or IP of the proxy server, followed by a colon and then the port number. 例如:For example:

set _NT_SYMBOL_PROXY=myproxyserver:80

如果以这种方式选择代理服务器,则任何使用 SymSrv 的 Windows 调试器都将使用该代理服务器来访问符号服务器。When a proxy server is chosen in this way, it will be used by any Windows debugger that is using SymSrv to access a symbol server. 任何其他使用 Dbghelp.dll 作为其符号处理程序的调试工具也将使用它。It will also be used by any other debugging tool that uses DbgHelp as its symbol handler. 此设置不会影响任何其他程序。No other programs will be affected by this setting.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值