![]() ![]() Type a line of code and press Shift+Enter to move the caret to the next line without executing a command. Type commands in the console and press Enter to execute them. You can perform the following actions in a console: Tutorial: Debug in IRB/Rails console Use a console Open the required Ruby file in the editor (if necessary, select a fragment of code to be executed).įrom the main menu, choose Tools | Load file/selection into IRB/Rails console. RubyMine allows you to run source code from the editor in the Rails console. Run source code from the editor in a console You can now run this configuration and use the Rails console without changing the database. In the invoked Run/Debug Configurations dialog, select the created Rails console configuration in the Ruby Console group and specify the Console script arguments option in the following way: Press Ctrl+Shift+A, start typing Edit Configurations, select it from the list and press Enter.Įxpand the run/debug configuration selector on the main toolbar and select Edit Configurations. Open the Run/Debug Configurations dialog in one of the following ways: For example, to use the -sandbox option to run the console, perform the steps below: ![]() If necessary, you can change the created configuration to provide additional options: change the environment, protect the database from changing data, and so on. Run a console with additional optionsĪfter you run the console for the first time, RubyMine creates the dedicated run configuration. Note that a console can be launched on a remote SDK. RubyMine will load the Rails console with the selected project SDK. (Optional) In the invoked dialog, select the required environment and click OK.Įnable the Use Zeus Server option to run the console with the Zeus server. From the main menu, go to Tools | Run Rails Console. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |