-
All you want is just calculating something. You can define a placeholder Blueprint class which has several overridable functions. And then in JS you can extend that class to override functions, and let your BP know ‘new JS generated class’.
-
You can add some function to wait until debugger attached by placing some Widget or timer (setTimeout(main,5000)).