Skip to main content



      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 13:47 Go to next message
Eclipse UserFriend
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?

Cheers
Re: Running an alias before debug runs [message #1790844 is a reply to message #1790710] Mon, 18 June 2018 18:07 Go to previous message
Eclipse UserFriend
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 bashScriptFilename.sh 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 18:16] by Moderator

Previous Topic:Disable Automatic Refactor
Next Topic:Exclude (duplicate) header from project
Goto Forum:
  


Current Time: Wed Jul 23 01:47:05 EDT 2025

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

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

Back to the top