Build and launch configurations/bugs? [message #192251] |
Wed, 30 May 2007 17:43  |
Eclipse User |
|
|
|
I have been playing around with the latest release candidate of CDT 4.0,
and encountered a couple of things that I am not certain are correct
behavior or bugs. It is a bit confusing as there appear to be at least two
separate types of "configuration" present in CDT.
As a background, I have a trivial C++ application that I have created
within a C++ project using managed build. In addition to the two standard
Build Configurations of Release and Debug, I have also created a
Release-Stripped build configuration.
First, the interaction of Build Configurations (e.g., the Debug and
Release build configurations created by the MinGW tool chain by default)
and project building:
a) Cleaning only cleans the active build configuration. There appears to
be no way to clean all build configurations with one command. This appears
to be by design, but probably should be enhanced?
b) Build All only builds the active configuration. This appears to be by
design, but is odd as it duplicates the Build Project functionality on the
same menu. What I expected was that this would build all the
configurations associated with the project. Is this a bug?
c) Build Configurations is a bit confusing, as it both allows setting of
the Active Configuration and is also used to build projects. When building
projects, the choice of All or Select is displayed, where Select allows
one to select any subset of the build configurations present in the
project, implying that you can actually build multiple build
configurations at one time. However, regardless of what is chosen, only
the active configuration is actually built. I think this is a bug, but am
not sure.
Second, Run/Debug or Launch configurations. Once a project is built,
attempting to run or debug the project will result in the creation of a
launch configuration for the target of the active build configuration.
This launch configuration then becomes the default configuration for both
the run and debug menu commands and is named for the target of the active
build configuration (but does NOT contain any indication of which build
configuration generated the target by default).
a) If the active build configuration is changed, the launch configuration
remains unchanged, so potentially the "wrong" application is launched or
debugged. This seems to be a potentially confusing situation for a
developer; I think the default launch configuration name should include
the build configuration name to prevent confusion. Enhancement?
b) Launch configurations do not appear in the Run As... or Debug As...
menus, so it is not clear to me how one would launch with a configuration
that one created. Is this a bug?
|
|
|
Re: Build and launch configurations/bugs? [message #192294 is a reply to message #192251] |
Thu, 31 May 2007 03:59  |
Eclipse User |
|
|
|
Eric Hildum wrote:
> Second, Run/Debug or Launch configurations. Once a project is built,
> attempting to run or debug the project will result in the creation of a
> launch configuration for the target of the active build configuration.
> This launch configuration then becomes the default configuration for both
> the run and debug menu commands and is named for the target of the active
> build configuration (but does NOT contain any indication of which build
> configuration generated the target by default).
> a) If the active build configuration is changed, the launch configuration
> remains unchanged, so potentially the "wrong" application is launched or
> debugged. This seems to be a potentially confusing situation for a
> developer; I think the default launch configuration name should include
> the build configuration name to prevent confusion. Enhancement?
> b) Launch configurations do not appear in the Run As... or Debug As...
> menus, so it is not clear to me how one would launch with a configuration
> that one created. Is this a bug?
Please compare with https://bugs.eclipse.org/bugs/show_bug.cgi?id=178731.
This should be related to your request.
Jens
|
|
|
Powered by
FUDForum. Page generated in 0.03104 seconds