Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debugging issue to watch variable values Pin
George_George24-Sep-08 20:17
George_George24-Sep-08 20:17 
AnswerRe: Debugging issue to watch variable values Pin
Alan Balkany24-Sep-08 11:02
Alan Balkany24-Sep-08 11:02 
GeneralRe: Debugging issue to watch variable values Pin
George_George24-Sep-08 20:15
George_George24-Sep-08 20:15 
GeneralRe: Debugging issue to watch variable values Pin
Alan Balkany25-Sep-08 3:23
Alan Balkany25-Sep-08 3:23 
GeneralRe: Debugging issue to watch variable values Pin
George_George25-Sep-08 21:20
George_George25-Sep-08 21:20 
GeneralRe: Debugging issue to watch variable values Pin
Alan Balkany26-Sep-08 2:52
Alan Balkany26-Sep-08 2:52 
GeneralRe: Debugging issue to watch variable values Pin
George_George26-Sep-08 20:42
George_George26-Sep-08 20:42 
GeneralRe: Debugging issue to watch variable values Pin
Alan Balkany27-Sep-08 6:49
Alan Balkany27-Sep-08 6:49 
There is a compiler option to generate assembly code. If you're going to do this, the assembly code will match your source code closer if you turn off optimization.

You could also write variable values to a log file. This may be less work than using assembly code.

If your program crashes, the log file may not have the last few values written to it. You can get by this with the Lockbox debugging pattern:

For every value written, append it to the log file, then close the file. This way the file is intact even after a crash.
GeneralRe: Debugging issue to watch variable values Pin
George_George27-Sep-08 21:00
George_George27-Sep-08 21:00 
GeneralRe: Debugging issue to watch variable values Pin
Alan Balkany29-Sep-08 4:45
Alan Balkany29-Sep-08 4:45 
GeneralRe: Debugging issue to watch variable values Pin
George_George30-Sep-08 23:55
George_George30-Sep-08 23:55 
GeneralRe: Debugging issue to watch variable values Pin
Alan Balkany1-Oct-08 3:21
Alan Balkany1-Oct-08 3:21 
GeneralRe: Debugging issue to watch variable values Pin
George_George3-Oct-08 1:23
George_George3-Oct-08 1:23 
QuestionConnect several keyboards on the same PC: Can I re-program some of the keys on only one of the keyboards? Pin
arnold_w23-Sep-08 23:31
arnold_w23-Sep-08 23:31 
AnswerRe: Connect several keyboards on the same PC: Can I re-program some of the keys on only one of the keyboards? Pin
James R. Twine24-Sep-08 2:52
James R. Twine24-Sep-08 2:52 
GeneralRe: Connect several keyboards on the same PC: Can I re-program some of the keys on only one of the keyboards? Pin
arnold_w25-Sep-08 0:56
arnold_w25-Sep-08 0:56 
GeneralRe: Connect several keyboards on the same PC: Can I re-program some of the keys on only one of the keyboards? Pin
James R. Twine25-Sep-08 1:46
James R. Twine25-Sep-08 1:46 
GeneralRe: Connect several keyboards on the same PC: Can I re-program some of the keys on only one of the keyboards? Pin
arnold_w25-Sep-08 3:27
arnold_w25-Sep-08 3:27 
QuestionC++ and IDL code sync issue Pin
George_George23-Sep-08 23:10
George_George23-Sep-08 23:10 
AnswerRe: C++ and IDL code sync issue Pin
Matthew Faithfull23-Sep-08 23:40
Matthew Faithfull23-Sep-08 23:40 
GeneralRe: C++ and IDL code sync issue Pin
George_George23-Sep-08 23:51
George_George23-Sep-08 23:51 
GeneralRe: C++ and IDL code sync issue Pin
CPallini24-Sep-08 0:24
mveCPallini24-Sep-08 0:24 
GeneralRe: C++ and IDL code sync issue Pin
George_George24-Sep-08 0:44
George_George24-Sep-08 0:44 
GeneralRe: C++ and IDL code sync issue Pin
CPallini24-Sep-08 0:54
mveCPallini24-Sep-08 0:54 
GeneralRe: C++ and IDL code sync issue Pin
George_George24-Sep-08 20:51
George_George24-Sep-08 20:51 

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.