How to debug MVVM pattern project?

I'm working in an existing application which is implemented in MVVM pattern (C#). I'm struggling while debugging the application such as where the button in the code and on clicking the button which method is executed. I need to put breakpoint to diagnose and error. Could you please assist how to debug the MVVM patten project?
LVL 16
Easwaran ParamasivamAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
MikeTooleConnect With a Mentor Commented:
Can you post the definition of the button?
The usual approach with mvvm is to link the button to an ICommand in the view-model
If the Button is defined in xaml, there should be an entry like ...
Command="{Binding MyCommand}"
... where MyCommand is a property of the view-model

To debug, you put your breakpoint on the method executing the command in the VM
0
 
Easwaran ParamasivamAuthor Commented:
Thanks.
0
All Courses

From novice to tech pro — start learning today.