Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi. I am facing strange error "the application is in break mode" when trying to debug my unit test methods. Even clicking on the link as shown in suggested actions it just disconnects and nothing happens.

Suggested action links are -
1. Show Diagnostic Tools
2. Check fro running TASKS
3. Continue execution

Sorry I am not sure how to attach screenshot here. Does anyone faced the same issue and aware of resolution?

What I have tried:

I googled this error and found few suggestions to untick "Enable Just My Code" option in Debug->Options->General, but this does not resolve my issue.
Posted
Updated 4-Jun-18 14:16pm

1 solution

Is it a Windows Form app?

if so, check if the class <public partial class Form1 : Form> is the first in your .cs file.

You may also look at the Program.cs...
 
Share this answer
 
Comments
[no name] 4-Jun-18 21:16pm    
This is not Forms application, its a UnitTest method for my API
gael12334 4-Jun-18 21:28pm    
In that case, you should have specified it in your description or you title...
I can't help with that...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900