Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Running an alias before debug runs(as per title)
Running an alias before debug runs [message #1790710] Thu, 14 June 2018 17:47 Go to next message
a b is currently offline a bFriend
Messages: 1
Registered: June 2018
Junior Member
Using eclipse CDT. Can't figure out where to put in an alias that sets some environment variables and sources a few files (linux file system) before attempting to run the debug configuration. I know that eclipse's shell is separate from linux's shell.
Where is such a thing set?

Re: Running an alias before debug runs [message #1790844 is a reply to message #1790710] Mon, 18 June 2018 22:07 Go to previous message
David VavraFriend
Messages: 778
Registered: October 2012
Senior Member
The launch configuration dialogs have tabs for

    Environment variables
    Source lookup paths
    and other things

You get to them using

    Run --> Debug Configurations .. or
    Run --> Run Configurations ... or
    the arrows next to the Debug or Run As tool bar buttons

If you want to run something in addition to the debugger you could try replacing the debug command with something like
bash or
bash /c "bunch of commands"
Never tried it.
May not work.

Just so you know, the launch configurations are unique by name and workspace.
If you edit one with Debug Configurations .. you get a Debugger tab and the Debug (vs. Run) button

[Updated on: Mon, 18 June 2018 22:16]

Report message to a moderator

Previous Topic:Error Copying Volume
Next Topic:Exclude (duplicate) header from project
Goto Forum:

Current Time: Mon Sep 24 13:21:47 GMT 2018

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

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

Back to the top