10

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
  • 137,403
  • 37
  • 338
  • 342
chenop
  • 3,486
  • 2
  • 34
  • 51
  • 2
    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

14

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
  • 73,196
  • 6
  • 110
  • 121
  • 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