Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Launch eclipse session without executable
Launch eclipse session without executable [message #1233697] Mon, 20 January 2014 09:50 Go to next message
Shiva Sharma is currently offline Shiva SharmaFriend
Messages: 3
Registered: January 2014
Junior Member
Hi Team,

Is it possible to launch an Eclipse-gdb Debug session without the executable file in Debug Configuration ?

Thanks &
Regards, Shiva.
Re: Launch eclipse session without executable [message #1234109 is a reply to message #1233697] Tue, 21 January 2014 08:55 Go to previous message
Marc Khouzam is currently offline Marc KhouzamFriend
Messages: 357
Registered: July 2009
Senior Member
Project-less debugging is supported:

But "binary-less" debugging is not really supported except for the attach case. With "C/C++ attach to application" you don't have to specify a binary, you just choose one to attach to when you get prompted.
Another option is to launch any non-stop debug session with some binary, and then start a new binary using the context menu "Debug New Executable". That new binary does not have to be part of the launch config.
If you don't want to start a useless first binary, you could achieve this by using a C/C++ Attach to Application but use gdbserver (option in the Debugger tab of the launch config). In that case you don't
need any binary in the launch config, and you are not forced to attach to a process when you launch; so, after the launch, you can "Debug New Executable" and start any binary. The disadvantage of that is
that you use a 'remote' type of launch which does not realize it can use the local file system. If you want to do that, just start gdbserver on localhost. (look at "remote attach launcher").

Previous Topic:A problem with Remote Debugging
Next Topic:Can't get Global Breakpoint to work in Kepler - Hello World
Goto Forum:

Current Time: Mon Jun 25 19:56:22 GMT 2018

Powered by FUDForum. Page generated in 0.02476 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top