Click here to Skip to main content
15,894,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to print all source code what was running? Pin
Randor 28-Jan-19 4:13
professional Randor 28-Jan-19 4:13 
GeneralRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 21:12
Stefan_Lang28-Jan-19 21:12 
AnswerRe: How to print all source code what was running? Pin
Victor Nijegorodov26-Jan-19 5:26
Victor Nijegorodov26-Jan-19 5:26 
GeneralRe: How to print all source code what was running? Pin
Member 1308136926-Jan-19 12:05
Member 1308136926-Jan-19 12:05 
GeneralRe: How to print all source code what was running? Pin
Victor Nijegorodov27-Jan-19 0:02
Victor Nijegorodov27-Jan-19 0:02 
GeneralRe: How to print all source code what was running? Pin
Member 1308136928-Jan-19 1:38
Member 1308136928-Jan-19 1:38 
GeneralRe: How to print all source code what was running? Pin
Victor Nijegorodov28-Jan-19 1:51
Victor Nijegorodov28-Jan-19 1:51 
AnswerRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 1:46
Stefan_Lang28-Jan-19 1:46 
If you are using Visual Studio, you can use its integrated debugger. Here is a guide to get started with it - it's really easy: Get started with Visual Studio 2017 - Debugging[^]

If you are not using Visual Studio, you should tell us what you use, so someone can suggest a suitable debugger to use for that, and/or a quick guide to learn how to use it.

The important things to know about debugging:

1. if you don't want to, you do not need to add any specialized code to your program to enable debugging.
2. You can tell your debugger that you want your program to stop if something specific happens. What you told us is quite easy to specify with Visual Studio: you can make the program run up to exactly the point where your iVal changes (see Data Breakpoints – Visual Studio 2017 15.8 Update   | Visual C++ Team Blog[^] )
3. When using a debugger, you can not only make your program run up to a point, you can also inspect all variables, the call stack, and other aspects of the current state of your program.

There are many more things that a debugger can help you with, e. g. change a variable at runtime, make the computer skip or repeat some code, etc.. All without changing the program code. But you have to learn the basics.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

QuestionHow to change the background color of checkbox in CListCtrl? Pin
manoharbalu23-Jan-19 19:05
manoharbalu23-Jan-19 19:05 
SuggestionRe: How to change the background color of checkbox in CListCtrl? Pin
Richard MacCutchan23-Jan-19 22:37
mveRichard MacCutchan23-Jan-19 22:37 
GeneralRe: How to change the background color of checkbox in CListCtrl? Pin
manoharbalu24-Jan-19 1:35
manoharbalu24-Jan-19 1:35 
QuestionTools to refactor C++ code - Rad studio Pin
ptr_Electron23-Jan-19 17:48
ptr_Electron23-Jan-19 17:48 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Richard MacCutchan23-Jan-19 22:33
mveRichard MacCutchan23-Jan-19 22:33 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Maximilien24-Jan-19 8:36
Maximilien24-Jan-19 8:36 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Stefan_Lang25-Jan-19 3:54
Stefan_Lang25-Jan-19 3:54 
QuestionWhat are the security risks by embedding the Python in C++ application, if any. Pin
oleg6322-Jan-19 9:11
professionaloleg6322-Jan-19 9:11 
AnswerRe: What are the security risks by embedding the Python in C++ application, if any. Pin
Joe Woodbury22-Jan-19 10:40
professionalJoe Woodbury22-Jan-19 10:40 
QuestionWhat extensions for Visual Studio can you recommend? Pin
Froddo22-Jan-19 5:53
Froddo22-Jan-19 5:53 
AnswerRe: What extensions for Visual Studio can you recommend? Pin
Victor Nijegorodov22-Jan-19 10:13
Victor Nijegorodov22-Jan-19 10:13 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Froddo23-Jan-19 3:40
Froddo23-Jan-19 3:40 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Member 1412742230-Jan-19 4:27
Member 1412742230-Jan-19 4:27 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Froddo31-Jan-19 1:25
Froddo31-Jan-19 1:25 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Member 141274221-Feb-19 6:27
Member 141274221-Feb-19 6:27 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Froddo12-Feb-19 6:48
Froddo12-Feb-19 6:48 
QuestionSetCheck() for checkbox in MFC GridControl 2.7 Pin
Anu_Bala21-Jan-19 18:16
Anu_Bala21-Jan-19 18:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.