Path: chuka.playstation.co.uk!news From: "Mark Wilson" Newsgroups: scee.yaroze.programming.codewarrior Subject: Re: Debugger problem Date: Mon, 8 Jun 1998 21:52:47 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 22 Message-ID: <6lhivj$1294@chuka.playstation.co.uk> References: <6lemid$1293@chuka.playstation.co.uk> <357AE25F.83EEAC60@compuserve.com> NNTP-Posting-Host: userk743.uk.uudial.com X-Newsreader: Microsoft Outlook Express 4.72.3007.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3007.0 Nick Slaven wrote in message <357AE25F.83EEAC60@compuserve.com>... >I think this is a bug in the debugger, 'cos I've also had the same >problem. I think that if the compiler optimises your local >variables into registers then the debugger wont display them. If you open up the >register window you will find that one of the registers >will update with the values you'd expect. >This can be overcome by using the keyword "volatile" as follows > >volatile short i,d,deltax,deltay; > >and the debugger will display the variables correctly. Thanks, that sorted it. Any chance of a fix Metrowerks? Mark