Simple Method for debugging credential provider

Source: Internet
Author: User

1. Use remote debugger of Visual Studio

In the remote debugger folder under the root directory of the installation disk of Widnows, select the appropriate installation file, all the way to next:

After the installation is complete, you can set the settings as follows to facilitate debugging:

(If you have enabled the Windows Firewall, remember to open UDP port 4015. The default port is 4015)

In visual studioselect the additional path, select the logonui.exe process, and click attach:

Next, follow the localCodeSame debugging

2. Use windbg + javasxec for standalone debugging

Psexec is a component in sysinternals suite and can be downloaded at:

Open the command line on the target machine and execute the following command

Export xec-dsx cmd.exe

When you press ctrl-alt-delto switch to another user, logonui.exe is called. Pressing alt-tab will switch to the command prompt:

Windbg-PN logonui.exe-srcpath % Cd %

You can use windbg for debugging.



This method is not as intuitive as the first method, especially for those who are not familiar with windbg. The advantage is that you only need one machine and do not need a virtual machine.



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: 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.