How to wait until remote .NET debugger attached

You can use the System.Diagnostics.Debugger.IsAttached property to check if a debugger is attached to the process. This application will wait until a debugger has been attached: using System; using System.Diagnostics; using System.Threading; namespace DebugApp { class Program { static void Main(string[] args) { Console.WriteLine(“Waiting for debugger to attach”); while (!Debugger.IsAttached) { Thread.Sleep(100); } Console.WriteLine(“Debugger attached”); … Read more

deploy/debug java code on a remote server using Intellij

There is a step by step deployment guide for PhpStorm, but for IntelliJ IDEA it would be almost the same. Here is the example configuration for deploying a .jar file from artifact subdirectory to the remote server via SFTP into /home/serge/artifact directory: I’d configure the artifact to produce the executable jar. Then adjust the deployment … Read more