Solved

Debugger in Borland's 5.0 suite

Posted on 1997-03-24
1
255 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

685 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