HaxeFoundation / HaxeFoundation/hxcpp-debugger
More straightforward usage
- 主要语言
- Haxe
- 星标
- 49
- 派生
- 16
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently these 3 steps are required to use hxcpp-debugger:
1. add `-lib hxcpp-debugger`
2. add `-D HXCPP_DEBUGGER`
3. add `new debugger.HaxeRemote(true, "localhost");` to the entry point
It would be nice if this could be reduced to just the first step.
Eliminating step 2 should be simple, either via an `extraParams` file that automatically defines `HXCPP_DEBUGGER` if the lib is included, or just by using the define that is added for the haxelib instead. I can't really think of a situtation where you would want to include the lib, but not define `HXCPP_DEBUGGER`?
The code needed could be injected via a macro somehow. @RealyUniqueName pointed out that alternatively, static var initialization could be abused for this.
There would still need to be a way to manually set the host IP somehow for remote debugging of course.
(discussed in haxe-dev, cc @Simn / @nadako)
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 issue 中描述的 haxelib 设置和 entry point 用法开始。将提议的 extraParams 或 haxelib define 方案与宏注入和静态变量初始化进行比较,同时确定如何保持远程调试主机可配置。完成的标准是:包含 hxcpp-debugger 不再需要单独的 define 或显式初始化 entry point,同时不移除主机配置。
由索引模型根据 Issue 内容生成。
评估
- 领域
- devtools
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100