Solved

Debugger in Borland's 5.0 suite

Posted on 1997-03-24
1
237 Views
Last Modified: 2010-04-10
I took over a project a couple of weeks ago when another programmer left our company.  I did not get to keep the project on his machine;  I had to move it to mine.  I was able to work on it on his machine for a short period of time before moving it to my machine, and there was no problem then.  On his machine both Borland and the project were on drive d:.  On my machine, I had to put Borland on drive c: and the project on drive d:.

Now here's the problem.  When I run my program with the debugger, the line offsets are off by one.  If I want to set a breakpoint, I have to select the line below the one where I want it to stop.  I know that this implies that it's finding the incorrect object or source code.  But I do have the pathnames for my libs, includes, and source code entered correctly in the project and environment options.  My source and object code both reside in the same directory with the ide.  There is also at least one of the source files where the debugger is more than one line off and I can't tell where I am at all.

The strange part is that within the directory there is a subdirectory containing a backup of the contents of the original directory.  When I rebuild and run the program there, the debugger works correctly.  I have already made some significant changes in the original directory, so I don't want to copy the contents of the backup directory and use it.

This is a list of what I've already tried.

1.  Deleted object and executable files, did a rescan (it was built with AppExpert), then recompiled and linked.  Everyone I work with tells me this should have been all I needed to do.

2.  I did variations of #1 with no success.

3.  I moved the sources only to a new directory, did a rescan, then rebuilt the program.

4.  I moved the contents of the backup directory to a new directory, moved the newer sources from the original directory in to replace the older ones, did a rescan, then rebuilt the program.

5.  I looked to make sure the individual nodes did not disagree with the pathnames for the libs, includes, etc.

None of these experiments succeeded.  I know the program is picking up the correct object code (at least for the files I've worked on)when it links because it will respond differently as it executes the changes I've made.  I can't go back to original machine to get anything now as its new user has reformatted the disks.

All suggestions will be tremendously appreciated.
0
Comment
Question by:csdouglass
1 Comment
 
LVL 1

Accepted Solution

by:
winmeister earned 100 total points
ID: 1162441
I suspect you have checked the "out-of-line inline functions" option.
Go to Options|Project then to Compiler|Debugging and UN-CHECK the
"Out-of-line inline functions" option, otherwise this will bring to
a misalignement during debugging.


0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now