Documentation would be ready soon, for now here is a quick example of using this feature.
Put code of you hosted service in custom code project and compile it
Start coderunner in debug mode with ./CodeRunner.sh
Make sure that your service is found - in start logs you’re able to see row [INFO] Build successfully: EventModel{timers=x, eventHandlers=y, services=1}
Add new remote debug run configuration with settings: host - localhost and port - 5005 ( in IDEA you can find this option in “Edit configurations” -> “add new” -> “Remote” )
Start app with created configuration
That’s it, now the debugger is attached to local coderunner process and you should be able to debug your code.
best regards,
Alex
[INFO] Runner successfully registered
[INFO] Parsing event model...
[INFO] Build successfully: EventModel{timers=0, eventHandlers=0}
[WARN] There are no any code, which can be deployed to Backendless...
Somehow my custom service is not recognized? There’s also missing the number of “services”
If I upload the generated jar it works fine using swagger.
If anybody needs to debug one service, how about getting the Service SDK for java, and instead of using “Backendless.CustomService.invoke” method, just call “<your service>.<your method>” with proper parameters.
At least you can check if your own code works without re-uploading your code every time.