BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Debug Problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
OKusmen
Guest





PostPosted: Thu Aug 19, 2004 1:41 pm    Post subject: Debug Problem Reply with quote



I want to debug an application. In applicaiton options, full debug options
is selected. But, I never debug. Also,there is no blue dots in the guttering
to the left of code editor. How can I debug this application? I try to close
ide and open again. This doesn't solve.


Back to top
Alisdair Meredith (TeamB)
Guest





PostPosted: Thu Aug 19, 2004 2:26 pm    Post subject: Re: Debug Problem Reply with quote



OKusmen wrote:

Quote:
I want to debug an application. In applicaiton options, full debug
options is selected. But, I never debug. Also,there is no blue dots
in the guttering to the left of code editor. How can I debug this
application? I try to close ide and open again. This doesn't solve.

Is there a .tds file in the same directory as the .exe that you are
trying to debug?

The .tds contains all the debug info needed by the IDE and I remember I
once had an obscure path setting that caused the .tds and .exe to go to
different folders. I'll try to remember the exact settings if this
turns out to be the problem, grey cells running a little slow today <g>

AlisdairM(TeamB)

Back to top
Russell Hind
Guest





PostPosted: Thu Aug 19, 2004 5:33 pm    Post subject: Re: Debug Problem Reply with quote



I see this if I've just opened a file in a different directory to the
project directory (where the .bpr is).

Use File | Open and select your project .cpp file that resides in the
project .bpr directory, and then run again.

The blue dots should be back.

This is becoming more and more annoying as our projects get split over
multiple directories!

Cheers

Russell

OKusmen wrote:

Quote:
I want to debug an application. In applicaiton options, full debug options
is selected. But, I never debug. Also,there is no blue dots in the guttering
to the left of code editor. How can I debug this application? I try to close
ide and open again. This doesn't solve.



Back to top
Alisdair Meredith (TeamB)
Guest





PostPosted: Fri Aug 20, 2004 1:39 pm    Post subject: Re: Debug Problem Reply with quote

Russell Hind wrote:

Quote:
This is becoming more and more annoying as our projects get split
over multiple directories!

Odd, we don't get these problems and the only file in the same folder
as our .bpr is the auto-generated WinMain. Everything else lives in a
parallel tree (we separated configuration/project management from
source)

Maybe it is because we never move that one specfic .cpp file?

AlisdairM(TeamB)

Back to top
Russell Hind
Guest





PostPosted: Fri Aug 20, 2004 3:27 pm    Post subject: Re: Debug Problem Reply with quote

My structure is

trunk
Quote:

-- Shared

-- TPISpectra

-- TPI1000

-- TPI2000

The project resides in TPISpectra. Some code is in here, but most is in
the other 3 directories.

If I use File | Open (or add to project) and select a .cpp from one of
the other 3 directories then this happens repeatedly for me (BCB6, XP
Pro SP1 & 2).

Another though on the matter:

My intermediate and final output directory is set to a sub-directory of
TPISpectra (the project directory). Maybe this has something to do with
it. It usually means it can't find the tds so maybe BCB6 is looking in
..build from the current directory *or* the project directory (so if you
final output is the project directory, the default, then that may be
different).

Now I've started playing with externals in Subversion, I am moving the
other 3 directories to be subdirectories of the project and don't see
this issue then (AFAICT anyway).

trunk
Quote:

-- Shared

-- TPISpectra
|
|-- build

-- TPI1000

-- TPI2000


Alisdair Meredith (TeamB) wrote:

Quote:
Russell Hind wrote:


This is becoming more and more annoying as our projects get split
over multiple directories!


Odd, we don't get these problems and the only file in the same folder
as our .bpr is the auto-generated WinMain. Everything else lives in a
parallel tree (we separated configuration/project management from
source)

Maybe it is because we never move that one specfic .cpp file?

AlisdairM(TeamB)

Back to top
Alisdair Meredith (TeamB)
Guest





PostPosted: Fri Aug 20, 2004 3:36 pm    Post subject: Re: Debug Problem Reply with quote

Russell Hind wrote:

Quote:
My intermediate and final output directory is set to a sub-directory
of TPISpectra (the project directory).

OK, there's your problem.
No problem setting intermediates, but final output (for .EXE projects)
should not be messed with, at least if you want easy debugging <g>

AlisdairM(TeamB)

Back to top
Russell Hind
Guest





PostPosted: Fri Aug 20, 2004 4:24 pm    Post subject: Re: Debug Problem Reply with quote

Alisdair Meredith (TeamB) wrote:
Quote:

OK, there's your problem.
No problem setting intermediates, but final output (for .EXE projects)
should not be messed with, at least if you want easy debugging

Ah, I had thought of this, but didn't seem to have a problem until I
moved source files from the project directory to 'parallel' directories.

I can live with it for the moment!

Cheesr

Russell

Back to top
OKusmen
Guest





PostPosted: Thu Aug 26, 2004 5:18 am    Post subject: Re: Debug Problem Reply with quote

tds and exe file is in same directory. My directory structure like this:

ap25projects
Quote:

---- AP25.bpg

----AP25APP
Quote:

---------tds file

---------exe file
---------Source directory
Quote:

--------Obj directory

-------- all source files, bpr file.



"Alisdair Meredith (TeamB)"
<alisdair.NO.SPAM.PLEASE.meredith (AT) uk (DOT) renaultf1.com> wrote

Quote:
OKusmen wrote:

I want to debug an application. In applicaiton options, full debug
options is selected. But, I never debug. Also,there is no blue dots
in the guttering to the left of code editor. How can I debug this
application? I try to close ide and open again. This doesn't solve.

Is there a .tds file in the same directory as the .exe that you are
trying to debug?

The .tds contains all the debug info needed by the IDE and I remember I
once had an obscure path setting that caused the .tds and .exe to go to
different folders. I'll try to remember the exact settings if this
turns out to be the problem, grey cells running a little slow today
AlisdairM(TeamB)



Back to top
Alisdair Meredith (TeamB)
Guest





PostPosted: Thu Aug 26, 2004 9:54 am    Post subject: Re: Debug Problem Reply with quote

OKusmen wrote:

Quote:
tds and exe file is in same directory. My directory structure like
this:

ap25projects

---- AP25.bpg
----AP25APP
|
---------tds file
---------exe file
---------Source directory
|
--------Obj directory
-------- all source files, bpr file.

I think we hit problems when we separated the .bpr from the tds/exe.
You might try moving those into the same folder.

In our structure, bpr, bpf/main cpp, tds and .exe all live in the same
folder. The main source for each project is in a parallel structure,
and obj files/precompiled headers are written somewhere else entirely.

But the 4 key files stay together, as it seems to keep the IDE happiest.

AlisdairM(TeamB)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.