Click here to Skip to main content
15,886,632 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to know the fastest way to compile with debug in Visual Studio. I also need to know how to go with Debug (F9), go back, correct a variable and continue.
I waste a lot of time compiling first in Debug mode and then in Release because if I do not, it tells me that the source code does not match.

What I have tried:

All have you tried. All have you tried.All have you tried. All have you tried.
Posted
Updated 16-Jul-18 3:58am
v2
Comments
CHill60 16-Jul-18 9:29am    
The "fastest" way is to just compile with debug. F9 sets a breakpoint. "Correct a variable and continue" is part of debugging. You should not attempt to build in Release mode until you are ... ready to Release.

You might find this useful Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[^]

That'll be because the DLL that it's using isn't the same as ateh source code for that DLL you have available.

Check the modification date of the DLL file, against the source code and it's debug version (assuming you are using the debug DLL - I can't see your screen so I can't be accurate).
 
Share this answer
 
If I compile only with debug, when I stop with F9 and enter a function of a dll, I get an error message indicating that the code does not match. Also, what I want to know is where to press. Now I click on "Solution Explorer", right click "Compile" on "Debug" and then on "Release". I need to save time. I also want to go lines back and correct.
 
Share this answer
 
I'm always modifying main and dlls. What I do not want is to compile every time in debug and release mode.

On one occasion I read that you can stop the execution, go back, modify and continue without compiling. It is true?
 
Share this answer
 
Comments
Dave Kreskowiak 16-Jul-18 11:17am    
Stop posting your replies as solutions to your own question. See the "Have a Question or Comment?" button? Click that and you'll reply to the post that button is under.

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