Solved

Debugger in Borland's 5.0 suite

Posted on 1997-03-24
1
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

624 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