gpt4 book ai didi

intellij-idea - 如何使用 IntelliJ IDEA 调试 Haxe?

转载 作者:行者123 更新时间:2023-12-04 05:56:49 24 4
gpt4 key购买 nike

我正在尝试使用 IntelliJ IDEA 调试带有 cpp 目标的 Haxe 应用程序。每次我在尝试对其运行调试时遇到相同的错误: "You can debug only flash or HXCPP targets"

我有一个基本的 HelloWorld 项目设置,其中包含 Haxe 编译器和 C++ 目标 (setup)。

我使用的是 Haxe (0.9.10) 的最新插件和旧协议(protocol)版本的 hxcpp-debugger(如 haxe 插件描述中所述)。在 IDEA14、15 和 2016 上试过这个。

我找到的所有使它工作的指南看起来都已过时。

最佳答案

我找到的最接近的是这个视频https://www.youtube.com/watch?v=6JjgOrEXcQc - 它使用 openfl,但如果您查看日志记录窗口,它会输出一条命令:haxelib run hxcpp Build.xml haxe -Ddebug -DHXCPP -Dcpp -Ddebug -Ddesktop -Dhaxe_208 -Dhaxe_209 -Dhaxe_210 -Dhxcpp -Dnme - Dnme_install_tool -Dsys -Dtrue -Dwindows。如果您不使用 openfl 进行构建,则必须让您的构建运行相同的命令。

该代码还必须在您的 main 方法中的某处创建一个调试套接字服务器:

new DebugSocket("127.0.0.1", 65333, true)

关于intellij-idea - 如何使用 IntelliJ IDEA 调试 Haxe?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38794265/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com