AnsweredAssumed Answered

displaying variables in debugger

Question asked by Tianhao Zhang on Nov 5, 2008
Latest reply on Nov 6, 2008 by stanish
Hi,

i'm running codewarrior v4.7 on vista and i have a question regarding the variables that are displayed when i run the debugger.

for instance, the following code
  dx=calc_x (delta_dist, desired_theta_deg);
  dy=calc_y (delta_dist, desired_theta_deg);
  cur_x += dx;
  cur_y += dy;
 
  x_diff=cur_x-goal_x;
  y_diff=cur_y-goal_y;
  x_diff_sq=pow(x_diff,2);
  y_diff_sq=pow(y_diff,2);

xy_diff_sq=x_diff_sq+y_diff_sq;  <----- breakpoint

i'm trying to see the values of x_diff_sq and y_diff_sq, however i only see x_diff_sq when i set a break point on xy_diff_sq. what is the problem here?
thanks in advance

Outcomes