Debug Windows Phone Unity Codes
1 – Build Visual Studio project for Windows Phone (File -> Build Settings -> Build).
2 – Open Generated Visual Studio Project.
3 – Click FILE -> Add -> Existing Project, navigate to Unity project folder and select Assembly-CSharp.csproj file.
4 – Go to BUILD -> Configuration Manager and make sure ARM platform is selected for your project.
5 – Optionally uncheck Build flag for Assembly-CSharp since it has already been built by Unity.
6 – Add breakpoint(s) to your script file(s).
7 – Make sure phone is connected to PC and Wphone Screen is unlocked.
8 – Make sure debugger type is set to Managed Only (default).
9 – Hit F5 to build, deploy, run and debug your app.