![]() Tags are listed in settings Control+Alt+S under Go | Build Tags.Īrguments for the built application. Also, you can use macros in this field.Īll tags that are applied during the build. In the Environment Variables dialog, click the Add button and add the environment variables that you need.Īrguments for the go tool (for example, -o). To edit environment variables, click the Browse button at the end of the field. If you have any code that creates relative files or directories, they will be relative to this directory.Įnvironment variables for your application. You can press Control+Space to see a list of available packages.ĭirectory that is used for the built application. This field is available only when you select the Package run kind. This configuration is automatically selected when you run the main function or a separate test by using the Run icon ( ) in the gutter.Ī full import path of the package that you want to compile (for example, /gorilla/mux). Specify a full import path to the package that you want to build in the Package path field (for example, /gorilla/mux). Package: build a single package with all its dependencies. This configuration is automatically selected when you run your program from scratch files. To pass multiple file paths, use the vertical bar ( |) as a delimiter. File and Package scopes work similarly in tests and compilation/running configurations (in terms of the scope they cover).ĭirectory: build an application in the specified directory as a package, without processing any subdirectories.įor test configurations, GoLand runs all the tests in the specified directory and all its subdirectories.įile: build an application from files specified in the Files field. The fields that appear in the right-hand pane display the default settings for the selected configuration type.Ī building scope for your application. List of fields in run/debug configurations ![]() Use the Control+F shortcut to search for text occurrences in the console output.įor more information about tool windows and how to manage them, see the Tool windows topic. Every run/debug configuration creates a separate tab when you run it. When the application starts, you can view its output and interact with it in the Run tool window. To quickly access the fields only using a keyboard, hold Alt and use the shortcut according to the hints that appear. For example, if you need to run your program with arguments, add the arguments to the Program arguments field. ![]() Modify the run/debug configuration as needed. To run a script, open it in the editor or select it in the Project tool window, and then select Run from the context menu.Ĭlick in the gutter near the class declaration and select Modify Run Configuration. The class that you are going to execute must contain a main() method with a valid signature, for example: public static void main(String args).Ĭlick in the gutter near the class declaration and select Run. If you are not going to pass any parameters to your program, and your program does not require any specific actions to be performed before start, you can run it right from the editor. You can run applications right from GoLand if you have an GOROOT set up for your project.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |