By default, the revel run command without a run_mode defaults to dev.

Hot Reload

As part of the development cycle, Revel can be configured to ‘watch’ for local file changes, and recompile as necessary.

Testing Module

Revel comes with a test suite, see the Testing Module

Debug using gdb

Go applications can be debugged using the GNU Debugger (GDB).

Intellij debugging (goland)

  1. Create your project, for this example i will be using canonical “revel new”
  2. “revel run” to generate tmp/main.go - this file is needed by intellij
  3. Shutdown the running server
  4. Create project in intellij from existing sources
  5. Create run configuration and in “Program arguments” add “-importPath\myaccount\my-app -srcPath \src -runMode dev"
  6. Point “File” to <your gopath>\src\\myaccount\my-app\app\tmp\main.go
  7. In “before launch” add “Run external tool”. There: Program: <your gopath>\bin\revel.exe Paramerets: build