Path: chuka.playstation.co.uk!news From: Nick Slaven Newsgroups: scea.yaroze.programming.codewarrior Subject: Re: debugger variable display weirdness Date: Sun, 26 Apr 1998 12:06:50 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 26 Message-ID: <35431547.A216AD17@compuserve.com> References: NNTP-Posting-Host: ld40-147.lon.compuserve.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 [en] (Win95; I) One thing I have noticed is that if the compiler has placed your variable in a register then MWDebug definitely gives you the wrong value. I got round this by declaring all variables as "volatile" during debug. Nick Slaven wayne a. lee wrote: > I haven't filed this as a bug report yet, thought I'd see if anyone else > had encountered this... maybe I'm doing something wrong. > > When I'm using MWDebug (v 1.7.1, Mac), many variable are displayed > incorrectly in the variable pane. Usually it's the parameters that are > passed in to the function. I have to crawl up the stack to the caller to > find out what value is really being passed in, or modify the code to assign > the parameter to a global or temporary variable, which I can then look at. > > Anyone else have this problem? I can't remember if this happened to me > before I switched computers. I'm now running OS 8.1 on a PowerMac 6500/300. > > -- > wayne a. lee >