Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a project was made in C#
and now i add some changes

but when added one line of code like : int x=0;
and run it (F5)
i can't trace my code using the Breakpoint
so , i need help
why can't i do trace ?
Although when remove my changes
and run it the Application allows me to trace the code.
Posted

1 solution

Probably, you have it set to not build your software before running - to check, do a manual rebuild (use the Build menu and "Rebuild Solution") then F5 to execute.

If that temporarily fixes it, look under "Tools", "Options", "Projects and Solutions", "Build and Run" and ensure that "On Run" is set to "Always build"
 
Share this answer
 
Comments
Ahmad Alweshahi 17-Mar-13 8:32am    
I did it but noway the same problem
under "Tools", "Options", "Projects and Solutions", "Build and Run" and Under that "On Run" is set to "Prompt to launch"
is that wrong ?
and also i tried Always build and the same problem
OriginalGriff 17-Mar-13 8:40am    
It's not wrong - it's probably a mistake for small projects, but not wrong.

Try cleaning your solution and rebuilding - it may be that you have managed to get an intermediate file with an incorrect date. "Build" menu, "Clean Solution" and then run and see if it prompts you for a rebuild (or does one for you if you have changed the option).

If that doesn't work - have you changed the selected solution configuration? Look at the Tool bar - it should have a drop down with "Debug" in it. If that is set to "Release" instead, switch it to "Debug" and try again.

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