HaxeFoundation / HaxeFoundation/hxcpp-debugger

More straightforward usage

オープン
#14 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。