AppCode 2019.2 Help

Add environment variables and program arguments

You can influence the runtime behavior of your app by adding program arguments and environment variables to run/debug configurations.

You can specify program arguments and environment variables in the corresponding fields of the Run/Debug Configurations dialog. To open the dialog, from the main menu, select Run | Edit Configurations or choose Edit Configurations from the selector on the run/debug toolbar.

Add program arguments

  1. In the Run/Debug Configurations dialog, select configuration for which you want to pass the arguments.

  2. Type the arguments in the Program arguments field. The arguments should be separated with spaces.
    Program arguments

    Click the Expand field icon to expand the text field, so you can view and edit the whole list of arguments.

Add environment variables

  1. In the Run/Debug Configurations dialog, select configuration for which you want to add environment variables.

  2. Type the variable name and value: <name>=<value>. If you add several variables, they should be separated with semicolons.

    Alternatively, click the Environment variables icon and add the variable name and value to the User environment variables list.

    Environment variables

    In the dialog that opens, you can also see the list of available system environment variables. Clear the Include system environment variables checkbox if you don't want to use the system environment variables for the selected run/debug configuration.

Last modified: 10 October 2019