Debugging issue: Detached from the target

How to solve this problem! What do you mean?

It’s kinda self explanatory, your remote debug session was terminated because the websocket was closed.

There is a way to solve it

Is there a way to solve it?

What are you even messing about with for the error to occur in the first place, may I ask?