Introduction
Following are the steps to debug the Visual Studio designer for WinRT Projects.
- Open the WinRT Project that designer needs to debug:
![](https://1.bp.blogspot.com/-TdVJtSAA054/UYvdWljkcJI/AAAAAAAAACM/M2tmNG5iOy8/s640/designerdebugwinrt1.png)
- Note the XDesProc process id from the TaskManager as shown in the below image:
![](https://3.bp.blogspot.com/-ArFXBbiFM3o/UYvdWmzy7oI/AAAAAAAAACE/Oe6P2bLH4G8/s640/designerdebugwinrt2.png)
- Open the same solution in another window:
![](https://2.bp.blogspot.com/-ldLx9oEydaU/UYvdaR6yuPI/AAAAAAAAACc/kg7bTjBEODQ/s640/designerdebugwinrt4.png)
- Note the New XDesProc process id from the taskmanager that the designer process needs to debug:
![](https://3.bp.blogspot.com/-rShhFMGPFw0/UYvdaufKPaI/AAAAAAAAADA/Q4LcLlOcrHw/s640/designerdebugwinrt5.png)
- Go to Debug->Attach To Process in Visual Studio 2012 from the FirstSolution:
![](https://1.bp.blogspot.com/-b3aPTLP59rY/UYvdbRnTrwI/AAAAAAAAAC0/QXqoVXF2PNM/s640/designerdebugwinrt6.png)
- Select the new XDesProc process from the Window:
![](https://2.bp.blogspot.com/-Hle_FSq9DOs/UYvdbqs2U0I/AAAAAAAAACs/xfrUA2UNx3o/s640/designerdebugwinrt7.png)
- Before clicking Attach, it is important to change the Attach To ->Managed 4.0,4.5 from the Select Button:
![](https://4.bp.blogspot.com/-ocxywTHKAxw/UYvdcQS1uxI/AAAAAAAAACw/DHqVi9BMSXM/s640/designerdebugwinrt8.png)
- Boom! Your BreakPoints in the FirstSolution got hit:
![](https://1.bp.blogspot.com/-pH85FjTEzjU/UYvdVo4yoOI/AAAAAAAAADI/_XS4lKwgiGU/s640/designerdebugwinrt10.png)
![](https://4.bp.blogspot.com/-SBCWA4q5p2M/UYvdeGaL24I/AAAAAAAAAC8/BlKjbd-E1xg/s640/designerdebugwinrt9.png)
Now you can play with the designer.