The application is in break mode - Unable to determine cause

前端 未结 8 1675
無奈伤痛
無奈伤痛 2021-02-03 22:57

I\'m experiencing that the IDE breaks sometimes when my application terminates.

When this occurs, the call stack is empty, and the thread list shows some threads which d

相关标签:
8条回答
  • 2021-02-03 23:24

    Go to exception settings and uncheck "Magaged Debugging Assistants"

    0 讨论(0)
  • 2021-02-03 23:28

    I didn't find any way to actually debug the problem. I solved the problem the bruteforce way:

    I removed all assemblies and COM objects one by one until the error was gone.

    In my case, I had a public control with a WithEvents in a module. It seems that VB.NET didn't like that at all. From now on, I will put the control and its withevent in a form.

    The main problem however remains: Visual Studio doesn't offer any help to isolate the problem easily.

    0 讨论(0)
  • 2021-02-03 23:29

    This is only a warning message when you run program in debug mode. If you change to the "Release" mode, you will not see this message again.

    0 讨论(0)
  • 2021-02-03 23:30

    When you are in the debugger you can navigate to watch window and use pseudovariables to display some information about the root cause. One particularly useful is $exception.

    Check document about pseudovariables.

    0 讨论(0)
  • 2021-02-03 23:36

    This can occur because some method or constructor is inaccessible (private or internal), put the as public.

    The XAML need call the methods to start application

    0 讨论(0)
  • 2021-02-03 23:43

    You may not be able to see the code where the exception happens if it's a part of a library or something else not written by you. The following might help:

    Debug > Options > General > Uncheck "Enable Just My Code"

    0 讨论(0)
提交回复
热议问题