Remote debug attach to process - Nsight Eclipse

I know I can debug a program on the Jetson TX2 remotely from a machine with Nsight Eclipse.
I also know I can debug by attaching to a process on the host machine I am using.

How can I debug by attaching to a remote process on the Jetson TX2?

Hi,

You may not be able to do this.

Usually, we debug an attached process through Nsight.
However, Nsight only supports desktop environment and cannot be used on the Jetson directly.

Thanks.