|
@@ -321,6 +321,17 @@ class Debugger {
|
|
|
THREAD_NOT_STOPPED);
|
|
|
}
|
|
|
|
|
|
+ #if scriptable
|
|
|
+ /**
|
|
|
+ Sets the callback to run whenever a new CPPIA script is loaded.
|
|
|
+
|
|
|
+ This can be helpful for adding breakpoints to a script.
|
|
|
+ **/
|
|
|
+ public static function setOnScriptLoadedFunction(callback:Void->Void):Void {
|
|
|
+ untyped __global__.__hxcpp_dbg_setOnScriptLoadedFunction(callback);
|
|
|
+ }
|
|
|
+ #end
|
|
|
+
|
|
|
// The hxcpp runtime calls back through these functions to create Haxe
|
|
|
// objects as needed, which allows the C++ implementation code to create
|
|
|
// Haxe objects without having to actually know the structure of those
|