You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently these 3 steps are required to use hxcpp-debugger:
add -lib hxcpp-debugger
add -D HXCPP_DEBUGGER
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.
Currently these 3 steps are required to use hxcpp-debugger:
-lib hxcpp-debugger
-D HXCPP_DEBUGGER
new debugger.HaxeRemote(true, "localhost");
to the entry pointIt 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 definesHXCPP_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 defineHXCPP_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)
The text was updated successfully, but these errors were encountered: