3

I'm trying to add conditional breakpoint in VS2015 inside C# method. Method signature is:

Core(Type type, object value, bool noAutoCreate)

The conditional expression for breakpoint is type.Name.Contains("ltern")

but this condition doesn't work and i receive error message

enter image description here

Why does it happen? How to avoid such problem and create well working conditional breakpoint if i need to catch some type ?

Community
  • 1
  • 1
Maxim Kitsenko
  • 2,042
  • 1
  • 20
  • 43
  • 2
    Possible duplicate of [Error when using a conditional breakpoint on System.Type](http://stackoverflow.com/questions/32276732/error-when-using-a-conditional-breakpoint-on-system-type) – GôTô Mar 01 '17 at 10:41
  • 1
    @burzhuy, What about this issue in your side? Whether it is related to the debug settings "Use Managed Compatibility Mode"? – Jack Zhai Mar 10 '17 at 11:20
  • @JackZhai-MSFT i will have ability to test it only on the next week – Maxim Kitsenko Mar 10 '17 at 16:29
  • @JackZhai-MSFT thanks. When "Use Managed Compatibility Mode" is on - i receive another error: "The function evaluation requires all threads to run" – Maxim Kitsenko Mar 21 '17 at 08:46
  • @burzhuy, Please check that whether it is related to the debugging option "Enable property evaluation and other implicit function calls".https://blogs.msdn.microsoft.com/eliofek/2012/12/12/why-do-we-get-the-function-evaluation-requires-all-threads-to-run/ – Jack Zhai Mar 22 '17 at 06:45

1 Answers1

0

You need to change debugging settings. Go to Tools->Options->Debugging->General and check Use Managed Compatibility Mode

Links to answer and MSDN blogpost.

Community
  • 1
  • 1
Sergey Vasiliev
  • 803
  • 8
  • 19
  • Thanks! But it doesn't help =( After checking, i receive another error: The function evaluation requires all threads to run – Maxim Kitsenko Mar 21 '17 at 08:44
  • 1
    @burzhuyhave a look at [this article on MSDN](https://blogs.msdn.microsoft.com/eliofek/2012/12/12/why-do-we-get-the-function-evaluation-requires-all-threads-to-run/), this case is described there. – Sergey Vasiliev Mar 21 '17 at 09:00
  • @burzhuy, What about this issue? Please feel free to share the latest information about this issue. – Jack Zhai Apr 04 '17 at 05:22