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(theCMakeLists.txtfile is located there) and select it (but not theCMakeLists.txtfile itself), then click OK.CMakeLists.txtfile.- 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--editorargument.- Run > Attach to Process…
-
You can now use the debugging tools from CLion.
Note
--path path/to/your/godot/projectargument to debug a project.
