Skip to content
This repository was archived by the owner on Apr 21, 2023. It is now read-only.

Remote Debugging with GoLand

Akihiro TAKASE edited this page May 11, 2021 · 8 revisions

1. SSH Configurations

001_ssh_configurations
  1. Click + in the left part of Tools > SSH Configurations.
  2. Type the information required to establish SSH connection to a remote host.
  3. Click Test Connection to make sure the information is valid.
  4. Click Apply.

2. Run Targets

002_run_targets
  1. Click + in the left part of Build, Execution, Deployment > Run Targets.
  2. Type the target name.
  3. Choose a remote host (In this instruction, use the one configured in the previous section).
  4. Check Use rsync.
  5. Click Test Connection to make sure that the remote host is reachable.
  6. Type the project path (For building the application on the remote host, GoLand deploys the project to this directory).
  7. Type the information (Except Version).
  8. Click Apply.

3. Run/Debug Configurations

003_run_debug_configurations
  1. Click + in the left part of Run/Debug Configurations and choose Go Build.
  2. Type the configuration name.
  3. Choose a remote host (executable is run on this host).
  4. Coose File.
  5. Type absolute path of the Go file which belongs to main package and have main function.
  6. Check Build on remote target and Run after build.
  7. Type the working directory (Same directory as the project).
  8. Click Apply.

Clone this wiki locally