I am developing client side of my application using IntelliJ IDEA. For debugging I need to run multiple clients.
I guess running same projects in different windows is not possible with IntelliJ IDEA. So how do I run multiple clients for debugging?
You can run or debug the same Run/Debug configuration in IntelliJ IDEA several times if you enable the Allow parallel run checkbox.
You will see a tab per instance in the Run or Debug tool window.
In the previous IDE versions this checkbox was called Single instance only and its effect was reversed.
Related
Is there a way to force JetBrains IDE startup tasks to be debugged instead of being run?
Specifically, I want to configure WebStorm Settings | Tools | Startup Tasks to automatically perform a JavaScript debug task on IDE startup. The debug task only works by debugging it instead of running it, but it seems that WebStorm performs startup tasks by simply running it. I'm using WebStorm 2022.3.
I'm expecting the task to be performed on startup as if it is executed by clicking the Debug button on the top right of the IDE.
debug mode for startup tasks is not supported right now. However, we have a corresponding feature request on our bug tracker. We would appreciate it if you could upvote the issue to demonstrate additional interest and bring increased awareness to the issue.
I run Spring Boot apps in different IntelliJ IDEA windows and sometimes I have to follow a request through multiple micro-services. So I have to go to each Idea window and press Clear All.
Is there a command that clears logs in all instances of Idea at once?
always before launching my app I'm running all the unit tests to make sure there is no regression. So I have two separate tasks and run all tests, and then I launch the app.
I'm curious if there is any option of setting the configuration this way that I click "Run" button, and it invokes build, tests and launch?
Thanks!
IntelliJ IDEA provides Compound Run/Debug configurations exactly for that:
Use this dialog box to create configurations containing multiple run/debug configurations that you can launch at once. This is useful, for example, if you want to launch various automated tests and get test results in one window.
Lets say I have run-config1 and run-config2 setup for my project in IntelliJ.
I know there are ways of adding custom shell code to be perfomed before/after a build run, but that's not what I want to do.
Is there a way of calling them from the embedded terminal?
As of IntelliJ IDEA 14 there is no such way. You can write a plugin for IntelliJ IDEA that will handle a command like "idea.sh run configuration-name" and start the run configuration in the existing instance, but this is fairly non-trivial.
I am developing with IntelliJ. In this project, I need to run 3 servers.
Is there a way to create a shortcut to :
Stop all those servers in one click or keyboard shortcut
Optionally, restart them.
Thanks.
There doesn't seem to be a direct method to do this in IntelliJ, but if you can stop each one from a script, then you could just write a script and run it from IntelliJ. Personally, I'd just go to the terminal and run the script rather than configuring it directly in IntelliJ (which also has an embedded terminal, btw).