I have a problem with debugging my MVC project. I insert a breakpoint to debug and then when i use F10 to trace each line , all lines are executed 2 or 3 times and i have to push F10 several times to go to the next line !
Actually our team contains 8 programmer and all of us had this problem so it is not a keyboard problem. our solution contains 5 project which one is mvc and others are class library . this problem happens when controller im vmc try to access a function in
other projects.
is this occuring only in one specific project? Or it also happens when you create a new solution + project from scratch and try it then? If not then it's something likely with some setting in your project. If yes then it's likely due to a setting in your
Visual Studio.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Marked as answer by Angie xu - MSFT on Dec 24, 2012 08:22 AM
dew_sh36
0 Points
22 Posts
problem with debugging
Dec 18, 2012 05:20 AM|LINK
hi everybody
I have a problem with debugging my MVC project. I insert a breakpoint to debug and then when i use F10 to trace each line , all lines are executed 2 or 3 times and i have to push F10 several times to go to the next line !
does anybody see something like this !
ignatandrei
All-Star
134491 Points
21566 Posts
Moderator
MVP
Re: problem with debugging
Dec 18, 2012 06:35 AM|LINK
no such problem. Check another keyboard.
dew_sh36
0 Points
22 Posts
Re: problem with debugging
Dec 18, 2012 07:09 AM|LINK
Actually our team contains 8 programmer and all of us had this problem so it is not a keyboard problem. our solution contains 5 project which one is mvc and others are class library . this problem happens when controller im vmc try to access a function in other projects.
ignatandrei
All-Star
134491 Points
21566 Posts
Moderator
MVP
Re: problem with debugging
Dec 18, 2012 09:16 AM|LINK
Wow. Quite a problem. If you click on the menus, Debug=>Step Over, the problem occurs also?
dew_sh36
0 Points
22 Posts
Re: problem with debugging
Dec 22, 2012 01:38 PM|LINK
Yes ,of course . even when i use menus, Debug=>Step Over it happens !
XIII
All-Star
182674 Points
23445 Posts
ASPInsiders
Moderator
MVP
Re: problem with debugging
Dec 22, 2012 01:48 PM|LINK
Hi,
is this occuring only in one specific project? Or it also happens when you create a new solution + project from scratch and try it then? If not then it's something likely with some setting in your project. If yes then it's likely due to a setting in your Visual Studio.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
dew_sh36
0 Points
22 Posts
Re: problem with debugging
Dec 29, 2012 06:14 AM|LINK
hi,
I found something : when i use breakpoint and F10 for each breakpoint, it appears that he executes twice the code. On the breakpoint it says:
"The process or thread has changed since the last step. " and when it comes to update the database it says:
"ChangeConflictException was unhandled by user code. Row not found or changed.".
but i dont know what couse this multithreading !