Set run configuration for multiple files at once? - eclipse

Is there a way to set run configuration (e.g. "command line arguments") for multiple files all at once in Eclipse? It would be convenient when running single testing test script, right now any arguments are added script by script.

Related

Is it possible in VS Code to debug with arguments, but without explicit launch configuration?

In order to debug a Python script with command line arguments in VS Code, (at least as far as I know) one needs to create a launch configuration, naming all these arguments there, and run the debugger for that configuration. This is, however, a bit cumbersome when I write a bunch of small scripts, so that I would need to create a new launch configuration with all these command line arguments for each such script.
So is there a way to run and debug a script with command line arguments, but without creating a new launch configuration first?
you can use the ${input} variables to create a generic launch config with N arguments

Efficient way to run PowerShell Pester tests from Sublime Text

I'm using Sublime Text (ST) to create my PowerShell scripts, Pester to test them.
To run test script, one must to switch to that tab, then press CTRL + B. This process must be repeated for each test script.
Is there an easy way to Sublime Text to run all of the tests in the project's directory?
Is there a way to have these test automatically run when a script or test changes (similar to guard)?
I added a script named Tests.ps1 to the project's directory with a single instruction:
Invoke-Pester
To run all tests, I open this file and press Ctrl+B.
** edit **
Created a new build system named 'Pester'. The contents of Pester.sublimebuild:
{
"cmd": ["powershell.exe", "-noprofile", "Invoke-Pester"],
"selector": "source.powershell"
}
To run all tests, press Ctrl+B.
If this doesn't work automatically, assign Pester as the build system using Tools | Build System | Pester and try again.

How do I call a .bat file to determine build environment in eclipse?

In to order to determine the build environment, I have written a .bat that will set the environment variables. How can I call this .bat file before make all?

Batch file in eclipse path variables not found

I want to start a batch-script in my eclipse. (Instructions here: How to run a batch script (.bat file) from eclipse)
In my batch file i need some commands like pear or phing.
I put the path to these commands into my environment variable called PATH.
(Works fine with cmd manually)
After starting the script, I'm getting this error:
'pear' is not recognized as an internal or external command,
operable program or batch file.
If I type pear by hand, it doesn't work either.
You need to restart Eclipse after changing the system environment; environment variable changes requires any process that is already running to be restarted in order for that application to pick up the changes.
Another option might be to put the full path to those commands in the .bat file so that it doesn't rely on the system environment in order to work properly.
Tip: Make sure to close and start eclipse afresh for PATH variable changes to take effect. Using the Restart option in File menu may not help here.

How to execute gdb script in eclipse when it attached?

I usually run a load libraries script when I attached to a process when I using eclipse.
I what it run this script automatically after I just attached to the process. But the .gdbinit script is executed at the beginning of attaching. Thus load libraries will fail in the .gdbinit script.
Is there a "ON_ATTACHED" function to let me do that?
I found the solution in another of my questions, I can write a .gdbinit script and define a post_run command.
How to redefine a gdb built-in command and call and call the original