hxcpp-debugger
hxcpp-debugger copied to clipboard
[Haxe 5] Cannot use this API from initialization macros
trafficstars
hxcpp-debug-server/git/hxcpp-debug-server/hxcpp/debug/jsonrpc/Macro.hx:9: characters 4-49 9 | Context.getType("hxcpp.debug.jsonrpc.Server"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | Cannot use this API from initialization macros. | Use
Context.onAfterInitMacrosto register a callback to run when context is ready.
https://github.com/vshaxe/hxcpp-debugger/blob/master/hxcpp-debug-server/hxcpp/debug/jsonrpc/Macro.hx#L9