Debugging TFS Custom Validation Policy

I created a custom registration policy, indicated in the link below:

http://msdn.microsoft.com/en-us/library/bb668980.aspx

I followed the steps as explained in the article. Everything is working fine. My doubt is - is it possible for me to debug the code when registering the code?

Note that I want to know which methods are called inside the CheckForCommentsPolicy class, as indicated in the article, or I added some business logic that needs to be debugged. What process do I need to apply? or Should I follow any other approach for debugging?

Is it possible to debug? Please help me.

Thanks in advance

+5
source share
3 answers

MrHinsh , , .

, "". " " , ​​ .

C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe

DLL- , , "", VS 2010 , , Debug | .

+3

. Visual Studio. , - .

"Debug | Attach to Process..."

Open the Attach to process dialog
: Attach to process

, Visual Studio ( , ).

Attach to the devenv.exe process
Figure: Join the devenv.exe process

This will allow you to debug an instance of your registration policy that runs on a copy of Visual Studio that you just joined.

+2
source

All Articles