Partager via


Quick Tip: Debugging Smart Device Unit Tests

While browsing MSDN today, I came upon a handy article that I wanted to share.   Titled 'How to: Debug while Running a Smart Device Unit Test', it provides step by step instructions on debugging your test projects.

There is one additional step I would like to add to those listed in the article.

WARNING: Using Remote Registry Editor incorrectly can cause serious problems that may require you to hard reset your device. Microsoft cannot guarantee that problems resulting from the incorrect use of Remote Registry Editor can be solved. Use Remote Registry Editor at your own risk.

7. Disable support for attaching to managed processes
To do this, use the Visual Studio Remote Registry Editor:

a. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETCompactFramework
b. Set the value of Managed Debugger\AttachEnabled to 0
-or-
Delete the Managed Debugger node

Take care!
-- DK

Disclaimer(s):
This posting is provided "AS IS" with no warranties, and confers no rights.
The information contained within this post is in relation to beta software. Any and all details are subject to change.