Path: chuka.playstation.co.uk!news From: Jim Newsgroups: scea.yaroze.programming.codewarrior Subject: Re: Debugger problem Date: Fri, 15 Aug 1997 14:03:36 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 42 Message-ID: <33F453A8.F6702CCE@micronetics.com> References: <01bca967$e72f65a0$04af35c6@islandnet.com.islandnet.com> NNTP-Posting-Host: jim.micronetics.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.01 [en] (Win95; I) X-Priority: 3 (Normal) Chris Blackwell wrote: > > I'm having difficulty with the CW debugger under Win95. When I load my > program, the grey "minus signs" which you click on to set a breakpoint are > in very strange places. It all goes wacky at my while loop. Here's the code > snippet to show where it goes wrong. I've added my own minus signs... > > - while(iPadData != (kPad1_Start | kPad1_Select)) > - { > - ::FntPrint("The pad data = %n", iPadData); > ::FntFlush(-1); > iPadData = thePad.Read(); > } > - > - // Reset the entire grapics system > - ::ResetGraph(3); > return(0); > > The most obviously wrong positions are the marks on the blank line and the > comment. I've tried to correspond what the marks actually belong to, and > assuming that the leading brace of the while should not have a brace, they > would line up if you moved the marks down two lines. Is this correct? And > what gives? Why is this happening? If any Metrowerks people are reading > this, I'd be happy to send you my code. > > Thanks, > Chris B. Hi Chris, Are you sure the exe is not earlier than the source? Maybe your source did not make correctly? I think you could be debugging the exe with a newer source file, hence some of the line numbers have changed by 1 or 2 lines. Try deleting the exe and doing a full rebuild. Regards -JiM