Search code examples
catel

How to single step thru Catel code while debugging


I'm using the Catel demo and trying to single step through the Catel code in it. According to this, I should be able to do so, but it doesn't work for me. As instructed, I've selected the option to Enable source server support.

VS options for debugging

If I try to single step code such as the following, it steps through the constructor for PersonViewModel, which is in the demo, but not through the Catel code.

var personViewModel = typeFactory.CreateInstanceWithParametersAndAutoCompletion<PersonViewModel>(person);

I updated the Catel.Core and Catel.MVVM to v5.12.4 to the latest version and likewise associated packages. I'm using .NET Framework 4.8.

What am I missing?


Solution

  • It looks like you have enabled Source Link support, which is correct. Other things that might cause this not to work are:

    1. Make sure just my code is disabled (it's enabled in your settings, Catel code isn't your code for a debugger instance)
    2. Make sure that, under the symbols tab, you have selected a directory