4

As IntelliJ + Windows user, I'm running some applications by starting some "Configurations".

The "Tool windows"/"Run" live show my aplication logs, and I've got left panel with "pause" or "stop" buttons. The stop button send a SIGKILL to the application thread. enter image description here

I would like a new button to send a SIGINT (CTRL + C equivalent) to my application.

I already saw lots of issues about "sending SIGINT on Windows environment" and it seems that it's not an easy task.

I also saw a 3 years old IntelliJ issue (already OPEN) about that point CPP-3067

After some search, I found this project called windows-kill that fit my need: I can take the application pid, and use this project binary to send a SIGINT on windows environment.

windows-kill -SIGINT 1234

My queston is:

  • how to add a new button on "Tool windows"/"Run" ? and is it possible to inject current thread pid for this new command ?

If it's not possible, I would like to know how to start to develop a new IntelliJ plugin: for example a new "ToolWindows" called "TaskManager" that

  • list all thread name+pid started by IntelliJ configurations,

  • allow user to define button+command for a given pid.

Maybe there is some open-source plugin that already doing that?

boly38
  • 1,806
  • 24
  • 29
  • 1
    See https://stackoverflow.com/a/4727696/104891. Note that it's not available for all configuration types. – CrazyCoder Jul 09 '19 at 18:07
  • I feel so dumb to not try this one (exit button) wich is documented https://www.jetbrains.com/help/idea/run-tool-window.html Note that the button is not available for Run/Debug Configuration: Node.js, Run/Debug Configuration: Attach to Node.js/Chrome, and Run/Debug Configuration: NodeUnit. – boly38 Jul 10 '19 at 06:51

0 Answers0