# Problem with enabling remote debugging for both c++ and python

**URL:** https://discourse.slicer.org/t/problem-with-enabling-remote-debugging-for-both-c-and-python/398
**Category:** Support
**Created:** [May 29, 2017, 12:36pm UTC](https://discourse.slicer.org/t/problem-with-enabling-remote-debugging-for-both-c-and-python/398 "2017-05-29T12:36:20Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![zp12132016](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zp12132016](https://discourse.slicer.org/u/zp12132016)
#### Post date: [May 29, 2017, 1:41pm UTC](https://discourse.slicer.org/t/problem-with-enabling-remote-debugging-for-both-c-and-python/398/3 "2017-05-29T13:41:19Z")

</div>

Hi Andras,

Thanks very much for your kind reply and detail explain.

For synchronizing the camera, I tried like this, go to module Cameras-\> select view2, camera “I use Default Scene camera”, however, when I move one of the rendered volume, the other one is not moving. I expect the other one moves identically when I move one of them, such as rotating, zooming.

For the python debug:

What I did as follows:  
1.Set remote debug in LiClipse by go to : Window-\> Perspective-\>customize perspective-Action Set Availablity-\>tick python debug  
2. Then Window-\>Perspective-\>Open perspective-\>Other…-\>Select Debug  
3. Then I go to Edit-\>application setting-\>Module-\>add the fold directory contain the HelloPython script  
4. go to LiClipse -\>start the pydev server  
5. go to Slicer-\>develop tool-\>python debugger  
6. in the settings, I selete Eclise (since there are only two options, the other is Pycharm  
7. then find the pydevd.py directory  
8. the default port is 5678  
9. then click connect to Eclipse debugger  
10, then I open helloPython.py in LiClipse  
11. add a break point  
12. then I go to slicer, select the HelloPython from the example category, it happened one time, slicer paused and I see all debugged variables and slicer code completion. However, when I close the computer and I repeat again, it doesn’t work anymore.

If I did mistake or you have stable version that allow to debug python code, could you let me know?

Best regards

Zen

![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/1X/52e3d8429dc9df354e80745a95a85b3abf8eb09e.jpg)

---

_[View the full topic](https://discourse.slicer.org/t/problem-with-enabling-remote-debugging-for-both-c-and-python/398)._
