Search
K
Comment on page

Run

If your project is ready to activate, run and see the result.

Add run command

You can add run command with "Add run command" on the top toolbar. Alternatively, go to [Project] > [Run] > [Add run command]
To add a default build command for the language/framework, right-click the "Run" item on the [Command] tab.
The default run commands include Python, Django, Flask, Jupyter Notebook, PyQ4, Python Tkinter, Nodejs, C, C++, Go, PHP, Java, Java Swing, JavaFx, Java AWT, Jsp, Spring(war), jar, Ruby, Sinatra, Swift, C#, C# WinForm, .Net, R.
For other files, use shell command: $<File Path>.

Execution of run command

Launch a build command with the "Run" icon on the toolbar to execute the most recent run command, or click the [Project] > [Run] Menu.
You can also run specific files(extension, file name). Right-click a file in the Project tab. Then click the [Run] > [Run Selected File].
'Run selected file' is only available when the file is one of the following extensions.
  • *.c, *.cpp, *.cxx
  • *.cs
  • *.go
  • *.js
  • *.php
  • *.py
  • *.sh
  • *.R
  • *.java
  • *.jsp
  • *.rb
  • *.swift
If you want to run other files, use the default method on shell: $<File Path>.
When you start running, a tab for the run command name appears at the bottom. This tab is Run-only terminal that displays the results of the run command action.
Clear run performance history with the Clearbutton, and stop it with the Stopbutton.
You can print results or give input values in this terminal.
a tab for the run command
Projects that require Web servers such as PHP, JSP, and Node.js need domain addresses to run.

Domain Registration

You can register a domain address at the top menu [Project] > [Running URL and Port]
Write URL and Port, and press the Register button. You cannot register multiple URLs to one port.
For some plug-ins, you might need to register a specified port to run the server. URLs that are no longer in use can be deleted by pressing the Recycle Bin button.
When clicking the Save and run button, ‘Server Process’ toggle must be turned on in order for the registered domain to be displayed on the run command tab. You may access the registered address through this display.

Node.js - express

This is an example of running express server in Node.js project.
By connecting to a given domain, you can see that the express server is running.
express server is running

Python - Django

This is an example of running Django server in Python project.
By connecting to a given domain, you can see that the Django server is running.
Django server is running

Run the server using a direct console

If you want to run the server using a direct console, use the registered domain address and port.
To check this, go to [Project] > [Running URL and Port] or [Project] > [Properties] > [Running URL and Port]. Select the registered URL and port to run the server.
When the server runs, localhost is connected to the domain address which is linked to the port.
Last modified 3yr ago