.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> WPF >> Post New QuestionBookmark and Share Subscribe to Forum

Debuging .xaml file in wpf

Posted By: naresh     Posted Date: June 08, 2011    Points:5   Category :WPF
How to debug a particular .xaml in project, project contains more .xaml files

Responses
Author: Gowthammanju             
Posted Date: June 08, 2011     Points: 20   

Hey try these links

http://msdn.microsoft.com/en-us/library/bb628680%28v=vs.90%29.aspx

U can also do

Menu => Debug => Detach All

refer these links also


http://www.wpftutorial.net/DebugDataBinding.html

note: particularly the second one where you use a dummy value converter to break in to the debugger.

It's useful for seeing exactly what objects are being bound, etc.

u can also follow below steps as

- Open the "Exceptions" window (Debug/Exceptions) in Visual Studio.
- Click "add"
- Add "System.Windows.Markup.XamlParseException"
- Check the box to break on throw for this exception.
- Hit F5!

You'll find that the XamlParseException you catch is much more descriptive, and will give the correct position in the xaml file.

WPF trick: Debugging the XamlParseException

u can use

Tools->Options->Debugging->General->Check Enable Exception Assistant

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: naresh             
Posted Date: June 08, 2011     Points: 20   

Hi i tried ur trick bt i cant find the detachall in debug menu

Author: Sasi Prabhu             
Posted Date: June 08, 2011     Points: 20   

try

http://geekswithblogs.net/lbugnion/archive/2007/04/02/110622.aspx

http://stackoverflow.com/questions/1484251/wpf-debugging-xaml


Thanks & Regards,
Sasi Prabhu.
Author: Sasi Prabhu             
Posted Date: June 08, 2011     Points: 20   

Samples From CodeProject

http://www.codeproject.com/KB/WPF/XamlVisualizer.aspx

Thanks & Regards,
Sasi Prabhu.
Author: Gowthammanju             
Posted Date: June 08, 2011     Points: 20   

follow te following linka u may find solution as

http://65.39.148.52/KB/windows/CeDir.aspx

http://www.codeproject.com/KB/system/writing_debugger_2.aspx?msg=3747397

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Gowthammanju             
Posted Date: June 08, 2011     Points: 20   

Hey

u r getting any error message while debugging

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Sasi Prabhu             
Posted Date: June 08, 2011     Points: 20   


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend