Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: C2668 Pin
Mahesh Kulkarni24-Sep-08 0:48
Mahesh Kulkarni24-Sep-08 0:48 
AnswerRe: C2668 Pin
toxcct24-Sep-08 0:56
toxcct24-Sep-08 0:56 
AnswerRe: C2668 Pin
SandipG 24-Sep-08 0:57
SandipG 24-Sep-08 0:57 
AnswerRe: C2668 Pin
sashoalm24-Sep-08 1:01
sashoalm24-Sep-08 1:01 
GeneralRe: C2668 Pin
T.RATHA KRISHNAN24-Sep-08 1:18
T.RATHA KRISHNAN24-Sep-08 1:18 
QuestionRe: C2668 Pin
Matthew Faithfull24-Sep-08 1:36
Matthew Faithfull24-Sep-08 1:36 
AnswerRe: C2668 Pin
SandipG 24-Sep-08 1:45
SandipG 24-Sep-08 1:45 
QuestionDebugging issue to watch variable values Pin
George_George24-Sep-08 0:03
George_George24-Sep-08 0:03 
Hello everyone,


1.

Sometimes in x64 release code (optimized to full level), even if we defined some global data, variables or member variables for some data structures, we can not see the actual value in debugger. The related error message is -- "Error: expression cannot be evaluated".

I think it is because of x64 code optimization to remove some variables or changed code execution path?

2.

Any ways to "watch" such variables? Currently I am just looking at the asembly code to find what the actual execution is. For example, in source code I pass variable foo to function SetValue, but since in debugger I can not watch such variable foo, then I go to assembly code to watch what values are passed to function SetValue through register or stack.

Any better ideas to debug such x64 optimized code? Is it a common issue in debugging x64 release code?


thanks in advance,
George
AnswerRe: Debugging issue to watch variable values [modified] Pin
kapardhi24-Sep-08 1:36
kapardhi24-Sep-08 1:36 
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 
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 

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.