Solved

Debugger in Borland's 5.0 suite

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

752 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