在工作中,我们看到这样的构建命令:
%EnginePath%\Binaries\Win64\UE4Editor-Cmd.exe %ClientPath%\%ProjectName%.uproject -run=HotPatcher {其它参数}
我们应该如何调试UE4Editor-Cmd.exe呢?其实调试 UE4Editor.exe 就可以了(参考:How to Debug the UE4Editor-Cmd.exe? - Debugging, Optimization, & Profiling - Epic Developer Community Forums),效果是一样的。
在调试器中,下图【1】处,选择工程,然后在【2】处,修改为上面的命令。当然,前面的UE4Editor-Cmd.exe不用写在Program arguments处,因为它其实在图2处配置了,鼠标悬停可见其值。
![](https://i-blog.csdnimg.cn/direct/e665e7e71a9a4f13b72f72120595b314.png)
(图1)
![](https://i-blog.csdnimg.cn/direct/70920a4b555946ff9cbc6f4d978e6c9c.png)
(图2)
然后,断点在你想要调试的地方,就可以Debug了。