# Eclipse Nsight Remote Debugging Issue

**URL:** <https://forums.developer.nvidia.com/t/eclipse-nsight-remote-debugging-issue/73775>\
**Category:** Jetson AGX Xavier\
**Created:** [April 26, 2019, 2:39pm UTC](https://forums.developer.nvidia.com/t/eclipse-nsight-remote-debugging-issue/73775 "2019-04-26T14:39:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gulmezh](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gulmezh](https://forums.developer.nvidia.com/u/gulmezh)\
**Post date:** [April 26, 2019, 2:39pm UTC](https://forums.developer.nvidia.com/t/eclipse-nsight-remote-debugging-issue/73775/1 "2019-04-26T14:39:23Z")

</div>

I configured recently installed Ubuntu 16.04 with JetPack 4.2 and installed both host and target packages. Samples work like a charm for both host and target. I used Nsight for remote debugging a particles project but could not succeeded.

Local → Build (OK) , RUN (OK) , DEBUGGING (OK)  
Remote → Sync Build (OK), RUN (OK), DEBUGGING (FAILED)

I used particles project that comes with cuda 10 by default. By failing means remote debugger opens a blank opengl window which is transparent and nothing happens. Debugging hangs and any kernel launches.

I read somewhere in forum about remote debugging issue of Xavier. Is it the same problem that i faced with ? Or opengl projects requires another way of debugging ?

ps: hdmi monitor connected to xavier

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [April 29, 2019, 4:57am UTC](https://forums.developer.nvidia.com/t/eclipse-nsight-remote-debugging-issue/73775/2 "2019-04-29T04:57:54Z")

</div>

Hi,

Could you try if this command helps?

```auto
export DISPLAY=:0

```

To open a window remotely, you will need to redirect the window into the local monitor.  
You can set the environment variable at  
properties → Run/Debug Settings → Edit → Environment → New …

Thanks.

---

<div class="post-metadata">

**Author:** ![gulmezh](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gulmezh](https://forums.developer.nvidia.com/u/gulmezh)\
**Post date:** [April 29, 2019, 6:17am UTC](https://forums.developer.nvidia.com/t/eclipse-nsight-remote-debugging-issue/73775/3 "2019-04-29T06:17:04Z")

</div>

Hi,

I did but it but nothing changed. I dont understand why should i redirect the window to my host monitor. I have seperate HDMI monitor for Xavier and it works with any problem. My issue is about remote debugging. If i run it it works but when i debug it just opens a blank transparent window. I enabled “Break on all kernel launches” option in debug monitor. No change. The last printed log to console is following

CUDA Particles Simulation Starting…

NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.

grid: 64 x 64 x 64 = 262144 cells  
particles: 16384  
GPU Device 0: “Xavier” with compute capability 7.2

---

<div class="post-metadata">

**Author:** ![gulmezh](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gulmezh](https://forums.developer.nvidia.com/u/gulmezh)\
**Post date:** [April 29, 2019, 6:35am UTC](https://forums.developer.nvidia.com/t/eclipse-nsight-remote-debugging-issue/73775/4 "2019-04-29T06:35:50Z")

</div>

When i debug it for host configuration it launches the kernel for calcHashD function as expected.

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [May 3, 2019, 8:11am UTC](https://forums.developer.nvidia.com/t/eclipse-nsight-remote-debugging-issue/73775/5 "2019-05-03T08:11:27Z")

</div>

Hi,

export DISPLAY=:0 will force the app to use the local monitor.  
Does the window work normally without _cuda-gdb_?

Thanks.
