Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Launching a debug session with a non-"debug"buildconfiguration

Often people will have a debug and release build for a project and expect
launching the debug build to begin a debug session and launching a release
build to just run the executable. Of course this is a simple example and
there are lots of special cases but generally how something is built can be
used to determine the best way to launch it.

Currently when you create a new launch configuration in CDT it captures the
active build configuration for the project so that if you rebuild before
launch it can do the right thing. This should probably be a user visible
controllable setting, I'll add it to my list of things to look at.

- Ken

> From: ext Daniel Jacobowitz <drow@xxxxxxxxx>
> Reply-To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
> Date: Thu, 24 Apr 2008 21:54:42 -0400
> To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
> Subject: Re: [cdt-dev] Launching a debug session with a
> non-"debug"buildconfiguration
> 
> On Wed, Apr 23, 2008 at 06:52:56PM -0700, Schaefer, Doug wrote:
>> Long term, I'd like to see the build, debug, and launch frameworks
>> become more aware of each other. At the least, the launch framework
>> should know what debugger to use for a given build configuration. This
>> could work into this use case where, if a build configuration doesn't
>> support debugging, it could flag that and flag a related config that can
>> be used. We could then switch to that config, build it, and continue
>> with the launch of the appropriate debugger for the debug config.
> 
> I'm not sure exactly what these terms mean, but going by my best
> guess, this sounds strange.  Why would a build configuration determine
> which debugger, or whether it supports debugging?  Any compiled
> executable can be debugged, usually locally or remotely or even
> more options - it's a question of e.g. whether the debug experience
> is degraded for improved performance.
> 
> There's settings for the build that would also be useful for the
> debugger, though.
> 
> -- 
> Daniel Jacobowitz
> CodeSourcery
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev




Back to the top