20

Running a node.js process (not sure it is relevant).

When I stop a process I get the following dialog:

enter image description here

What is the difference between Terminate and Disconnect?

LazyOne
  • 158,824
  • 45
  • 388
  • 391
chenop
  • 4,743
  • 4
  • 41
  • 65
  • 3
    Generally speaking ... "Disconnect" means that process will keep running but the debugger (or whatever was attached to it) will be disconnected. "Terminate" will end the process. I doubt that it has other special meaning here... – LazyOne Sep 01 '18 at 10:22

1 Answers1

20

Terminate causes the running process(es) to stop; Disconnect keeps the process running, but the IDE (debugger, etc.) will no more be attached to it. See https://www.jetbrains.com/help/webstorm/2018.2/system-settings.html, On Closing Tool Windows with Running Process

lena
  • 90,154
  • 11
  • 145
  • 150
  • I started a serverSocket on a port, and then used "Disconnect". Now, I cannot connect to that port anymore since it is hogged. How do I fix this? `java.net.BindException: Address already in use: NET_Bind`. Another Exception I get comes from my "finally" (in try-catch-finally where I opened the socket that fails to open) that was supposed to make sure the socket gets closed: `serverSocket.close();` returns this Exception: `Exception in thread "Thread-0" java.lang.NullPointerException`. – payne Nov 14 '18 at 03:17
  • 1
    Terminate your server socket. You can't connect to a running socket by re-starting it. – lena Nov 14 '18 at 18:14
  • Indeed, [this answer](https://stackoverflow.com/a/39633428/9768291) helped me do such a thing. – payne Nov 14 '18 at 19:35
  • 1
    Is it any way to "Connect" to the process again? – Vladyn Jul 05 '22 at 07:43
  • no way to do this – lena Jul 05 '22 at 15:29