The application is in break mode - Unable to determine cause

前端 未结 8 1703
無奈伤痛
無奈伤痛 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:43

    In one of my web applications I had the same issue, to find out what was wrong,after searching for similar issues, most suggested changing my debugging options. So in the debugging options, under general, I marked the second option "Break all processes when one process breaks" and nearly at the bottom, "Enable native Edit and Continue"; "Apply changes and Continue".

    With this, my app finally stopped where I had the issue (Illegal characters in a string which ajax did not like) and was able to evaluate the values and find out what was wrong, edit the code on the go till it worked. Here's a screenshot of my debugger options. Hope you catch your bug:)

    Debugger options

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

    This can also occur when a single threaded Winforms application takes more than 60 seconds to complete an action in the main thread.

    I solved it in the dirty way, by calling Application.DoEvents() on regular intervals from the main thread, during too long processing. Exceptions that occur between Application.DoEvents calls are handled properly in the IDE.

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