B4J Question Debug Mode failing in IDE - Socket error

lancaster

Member
Licensed User
Longtime User
One of my projects regularly fails to start in Debug mode and reports a Socket Error with

Caused by: java.lang.RuntimeException: java.net.SocketException: Socket closed
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:120)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
at b4j.example.main.<clinit>(main.java:17)
Caused by: java.net.SocketException: Socket closed

After attempting this several times I might just get "Waiting for debugger to connect..." and then nothing or occasionally it behaves correctly an stops at my first breakpoint and we're good to go.

It is only on one of my projects. Others are fine. This project uses OkHttp (Library) and HttpJob and HttpUtils2Service (Source code).

I have moved the project to two other Windows machines and get the same issue.

The project never fails in Release mode.

Suggestions gratefully received as it is slowing down my development somewhat.

Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…