CLion

CLion is a commercial JetBrains IDE for C++.

Importing the project

CMakeLists.txt file as a project file, which is problematic for Godot because it uses the SCons buildsystem instead of CMake. However, there is a CMakeLists.txt configuration for Android Studio which can also be used by CLion.

  • File > Open from the top menu.
  • <Godot root directory>/platform/android/java/nativeSrcsConfigs (the CMakeLists.txt file is located there) and select it (but not the CMakeLists.txt file itself), then click OK. CMakeLists.txt file.
  • This Window to open the project:
  • Tools > CMake > Change Project Root from the top menu and select the Godot root folder. - Godot’s community channels.

    Debugging the project

    compile godot yourself and run the binary without CLion. You will then be able to debug Godot by using the Attach to process feature.
  • scons.
  • --editor --path path/to/your/godot/project. To run the project instead of editing it, remove the --editor argument.
  • Run > Attach to Process… - You can now use the debugging tools from CLion. Note --path path/to/your/godot/project argument to debug a project.