15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


debugger line numbers are off

Nayab Khan -- Nayab_Khan@amrcorp.com
Friday, February 21, 1997

Environment: Win95, VC++ 4.2b

Whenever I try to step through my code it seems
like the line numbers in the debugger are off by a
few lines in the MFC source code. As a result a
call to any of the MFC functions takes me to the
middle of the function. I have seen this to mostly
happen in the DAO core CPP files. I know I didn't
receive any errors when I installed the 4.2b
patch. Has anyone else experienced this problem?
Is there a fix?



Mike Blaszczak -- mikeblas@nwlink.com
Friday, February 21, 1997

[Mini-digest: 2 responses]

At 12:27 2/21/97 -0600, you wrote:
>Environment: Win95, VC++ 4.2b

>I know I didn't
>receive any errors when I installed the 4.2b
>patch.

That's impossible: the patch will always generate _some_ errors
because the patch patches any file you might possibly have installed,
but no user ever has _every_ file installed.

>Has anyone else experienced this problem? Is there a fix?

The PDB files you're using to build, or that you're referencing while
debugging (or both) are out-of-synch with your source code.  Either
your source wasn't patched, or your PDBs weren't patched while
building. Or, while debugging, you're referencing code that wasn't
patched, or you're referencing PDB files that weren't patched.


.B ekiM
http://www.nwlink.com/~mikeblas/
These words are my own. I do not speak on behalf of Microsoft.
           This performance was not lip-synched.

-----From: mwelch@tsbbank.co.uk

Environment: MSVC 4.2-flat\Win95, MSVC 2.2\NT3.51

>> Has anyone else experienced this problem?

Yes. Usually when someone has checked source back in and not built the DLL=20
or EXE in the master directory. Try rebuilding the entire project.

Martin
 ----------
From: Nayab_Khan@amrcorp.com
To: mfc-l@netcom.com; Martin Welch
Subject: debugger line numbers are off
Date: 22 February 1997 15:19

Received: from majordomo.netcom.com (206.217.29.105) by mail.tsbbank.co.uk
(Integralis SMTPRS 1.4) with SMTP id ; Sat,
22 Feb 1997 15:13:56 +0000
Received: by majordomo.netcom.com (8.7.5/8.7.3/(NETCOM MLS v1.01)) id
SAA21334; Fri, 21 Feb 1997 18:44:39 -0800 (PST)
Message-Id: 
X-Mailer: Novell GroupWise 4.1
Date: Fri, 21 Feb 1997 12:27:50 -0600
From: Nayab Khan 
To: mfc-l@netcom.com
Subject: debugger line numbers are off
MIME-Version: 1.0
Sender: owner-mfc-l@majordomo.netcom.com
Errors-To: owner-mfc-l@majordomo.netcom.com
Precedence: bulk
Reply-To: mfc-l@netcom.com
Content-Type: text/plain
Content-Disposition: inline
Environment: Win95, VC++ 4.2b

Whenever I try to step through my code it seems
like the line numbers in the debugger are off by a
few lines in the MFC source code. As a result a
call to any of the MFC functions takes me to the
middle of the function. I have seen this to mostly
happen in the DAO core CPP files. I know I didn't
receive any errors when I installed the 4.2b
patch. Has anyone else experienced this problem?
Is there a fix?


---------------------------------------------------------------------------
This email is only for the use of the addressee. It may contain information
which is legally privileged, confidential and exempt from disclosure.
If you are not the intended recipient you are hereby notified that any
dissemination, distribution, or copying of this communication and its=20
attachments is strictly prohibited. If you receive this communication in=20
error, please email nadmin@tsbbank.co.uk.
---------------------------------------------------------------------------



Jim Lawson Williams -- jimlw@mail.ccur.com.au
Sunday, February 23, 1997

At 12:27 21-02-97 -0600, Nayab Khan wrote:
>Environment: Win95, VC++ 4.2b
>
>Whenever I try to step through my code it seems
>like the line numbers in the debugger are off by a
>few lines in the MFC source code. As a result a
>call to any of the MFC functions takes me to the
>middle of the function. I have seen this to mostly
>happen in the DAO core CPP files. I know I didn't
>receive any errors when I installed the 4.2b
>patch. Has anyone else experienced this problem?
>Is there a fix?
>
Check the "Browse Info" tab under "project Settings".
I think you'll find "Build" check-box has been
reset.

Rgds,
Jim LW


>From the BBC's "Barchester Chronicles":

    "I know that ultimately we are not supposed to understand.
    But I also know that we must try."

       -- the Reverend Septimus Harding, 
          tax-consultant, crypt-analyst, clog-dancer, C++ programmer



Andrew Kondrashow -- recoder@world.std.com
Saturday, February 22, 1997

On Friday, February 21, 1997 1:27 PM, Nayab Khan[SMTP:Nayab_Khan@amrcorp.com] wrote:
>>Environment: Win95, VC++ 4.2b
>>
>>Whenever I try to step through my code it seems
>>like the line numbers in the debugger are off by a
>>few lines in the MFC source code. As a result a
>>call to any of the MFC functions takes me to the
>>middle of the function. I have seen this to mostly
>>happen in the DAO core CPP files. I know I didn't
>>receive any errors when I installed the 4.2b
>>patch. Has anyone else experienced this problem?
>>Is there a fix?
>>
I had a similar symptoms when I installed both MSVC 4.1
and 4.2, so run-time sources didn't match actual libraries.
That might be a reason.

Andrew Kondrashov



Vettori Andrea -- vettori@dei.unipd.it
Monday, February 24, 1997

Nayab Khan wrote:
> 
> Environment: Win95, VC++ 4.2b
> 
> Whenever I try to step through my code it seems
> like the line numbers in the debugger are off by a
> few lines in the MFC source code. As a result a
> call to any of the MFC functions takes me to the
> middle of the function. I have seen this to mostly
> happen in the DAO core CPP files. I know I didn't
> receive any errors when I installed the 4.2b
> patch. Has anyone else experienced this problem?
> Is there a fix?

This happens when the object code is not up to date.
For example, enter some empty line in your source code and try to
debug without recompiling your app. When you go to the modified file
the source code is not "aligned".

***
You must rebuild the DAO sources.
***

-- 
Vettori Andrea
e-mail: vettori@dei.unipd.it
web: http://www.dei.unipd.it/~vettori/intro.html




Become an MFC-L member | Вернуться в корень Архива |