diff --git a/compile/godot-compile.md b/compile/godot-compile.md index 326236f..a6954c5 100644 --- a/compile/godot-compile.md +++ b/compile/godot-compile.md @@ -101,8 +101,6 @@ opt是optimized production template的缩写,是优化过后的模板,这个 ``` scons platform=windows use_lto=yes # MinGW的编译环境,使用这个参数可以让发布的体积更加小,但是需要更多的机器内存 - -scons platform=windows vsproj=yes # generate the solution ``` # Android Compile @@ -117,3 +115,23 @@ scons -j15 platform=windows use_mingw=yes scons -j15 platform=android use_mingw=yes target=release android_arch=arm64v8 ``` + +# 使用Visual Studio调试Godot的源代码 + +- scons platform=windows vsproj=yes + +``` +使用命令创建vs的解决方案 +``` + +- 再使用Visual Studio双击打开sln解决方案 + +- 设置调试参数 + ![Image text](image/vs12.JPG) + +# 使用Clion调试Godot的源代码 + +- 使用Clion打开项目的文件(根目录) +- Clion会让你选择一个CMake文件,选择platform/android/java/nativeSrcsConfigs/CMakeLists.txt +- 在Terminal控制台使用命令打开godot编辑器,godot.windows.tools.64.exe --editor --path D:/github/godot-project-test +- 然后Attache到godot的process diff --git a/compile/image/vs12.JPG b/compile/image/vs12.JPG new file mode 100644 index 0000000..9548eb1 Binary files /dev/null and b/compile/image/vs12.JPG differ diff --git a/compile/image/vs12.JPG.import b/compile/image/vs12.JPG.import new file mode 100644 index 0000000..79fec81 --- /dev/null +++ b/compile/image/vs12.JPG.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/vs12.JPG-5c547e0975b2bdf832a9b9b6ff9bf767.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://compile/image/vs12.JPG" +dest_files=[ "res://.import/vs12.JPG-5c547e0975b2bdf832a9b9b6ff9bf767.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0