From ccc3462e1ae3effc94b09983b10e6da4e0b867be Mon Sep 17 00:00:00 2001 From: jaysunxiao Date: Fri, 25 Mar 2022 11:37:22 +0800 Subject: [PATCH] doc --- compile/godot-compile.md | 22 ++++++++++++++++++++-- compile/image/vs12.JPG | Bin 0 -> 559949 bytes compile/image/vs12.JPG.import | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 compile/image/vs12.JPG create mode 100644 compile/image/vs12.JPG.import 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 0000000000000000000000000000000000000000..9548eb1b1c6e37a92515fc9cecc781521ff2b491 GIT binary patch literal 559949 zcmeFYcT`hdyDu7wARtwG7f_HYU1|iR3kWK`NG}0GC)A)wZvp~Ji}Vg6y?0QN-a7=O zw@?FwaN_&!{e5TeyZ<=fJ$u|S&OI*1l)0vJt+}4xEYI&L+)Upr1IW~rRFwc&SXh8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