PyCharm 2017: Remote debugging using remote interpreter doesn't work
I set up a remote interpreter and verified that I can run a script using the remote interpreter. Console output in the Run window looks like this:
ssh://freddy@192.168.178.60:22/usr/bin/python -u /home/freddy/workspace/tensorflow/models/inception/inception/imagenet_train.py --num_gpus=2 --batch_size=64 --num_sub_batches_per_batch=2 --train_dir=/tmp/imagenet_train --data_dir=/media/data/imagenet
The script 'imagenet_train.py' works fine.
However when I start the remote interpreter in debug mode, nothing happens:
1. I do not get a debug window
2. The debug icon remains gray after I clicked it to start debugging
There is no other output what so ever.
The only clue I have is (and this already shows at start up of Pycharm) a error message in the 'Python console' :
Error:Failed to add remote port forwarding
Any input to how to get my remote debugging going is appreciated.
Ok, so I found my solution. The error in my Python console let me to it ('Error:Failed to add remote port forwarding').
On my Ubuntu server I had to set 'AllowTcpForwarding yes' in the ssh config file (/etc/ssh/sshd_config) and restart the SSH daemon.
Would be good if PyCharm would give an error when I start debugging that something is wrong, I didn't get any output at all.
I don't know what's going on, but when I have this problem, I simply restart `(File -> Invalidate Caches / Restart ...)` PyCharm and it was fixed :)
Restarting always helps :)
@huangbiubiu
Have you tried setting AllowTcpForwarding to yes as mentioned above?
Please sign in to leave a comment.
PyCharm 2017: Remote debugging using remote interpreter doesn't work的更多相关文章
- 在chrome 总调试cordova出现Detached from the target. Remote debugging has been terminated with reason: Connection lost. Please re-attach to the new target
		在chrome 总调试cordova出现如下错误: "Detached from the target. Remote debugging has been terminated with ... 
- 转:Remote debugging with Visual Studio 2010
		Original URL http://www.codeproject.com/Articles/146838/Remote-debugging-with-Visual-Studio-2010 you ... 
- Remote Debugging (1)
		The client/server design of the Java debugger allows you to launch a Java program from computer on y ... 
- JPDA and Set up Tomcat for Remote Debugging
		* About JPDA (http://docs.oracle.com/javase/7/docs/technotes/guides/jpda/architecture.html) JPDA: (J ... 
- 安卓手机移动端Web开发调试之Chrome远程调试(Remote Debugging)
		一.让安卓打debug模式的apk包 二.将电脑中的chrome升级到最新版本,在chrome浏览器地址栏中输入chrome://inspect/#devices: 在智能手机还未普及时,移动设备的调 ... 
- Android WebView remote debugging
		/***************************************************************************** * Android WebView rem ... 
- Android/iOS Remote debugging
		简单介绍 使用下面方法可以定位webview中的元素,无法定位view中的元素. 原文地址:http://mp.weixin.qq.com/s/y_UfdgjT_pkKgYivJmqt7Q webvi ... 
- Remote Debugging Android Devices
		Remote Debugging Android Devices //在电脑上远程调试安卓设备 By Kayce Basques Technical Writer at Google By Meggi ... 
- 通过Chrome浏览器进行android调试/Remote Debugging on Android with Chrome
		The way your web content behaves on mobile can be dramatically different from the desktop experience ... 
随机推荐
- Unity3D 使用Socket处理数据并将数据 在UGUI、NGUI上显示出来
			Unity3d 不支持C#的线程直接调用Unity3D 主线程才能实现的功能.例如:给UGUI text 赋值.改变Color值等.怎样解决这个问题呢?使用一个Loom脚本. 按照惯例贴上代码. 首先 ... 
- canvas应用
			<!doctype html> <html> <head> <meta charset="utf-8"> <title> ... 
- python的安装以及前景
			1.检查软件是否安装:在cmd命令行上输oython 假如环境已经配置好环境变量 则会显示为python的inf: 2.下载并安装python 打开python官网:https://www.pytho ... 
- Delphi xe 10.3.2-快递接口封装-【快递鸟(即时查询和单号识别)】
			编译环境:Windows 7 +Delphi xe 10.3.2 封装了快递鸟接口,注意的坑:MD5要转为小写. function TKDniaoAPI.StrtoMd5(const str: str ... 
- 《How Tomcat works》
			容器是一个处理用户servlet请求并返回对象给web用户的模块. org.apache.catalina.Container接口定义了容器的形式,用四种容器:Engine(引擎),Host(主机), ... 
- mybatis无效比较:invalid comparison:java.util.data and java.lang.string
			原因: 时间与空字符串比较是无效的,如果拿传入的时间类型参数与空字符串''进行对比则会引发invalid comparison:java.util.data and java.lang.string异 ... 
- 教你用Python实现免费蹭WiFi,只要有WiFi的地方,你就不会断网!
			想象一下,程序员没有WIFI会怎样? 程序员没有网络肯定会寸步难行! 但是对于Python程序员来说,只要附近有热点,分分钟就能蹭网成功! 想要WIFI破解,python+字典,这是必少不了的.热点加 ... 
- PlayJava Day019
			今日所学: /* 2019.08.19开始学习,此为补档. */ 1.this: ①this是成员方法的一个特殊的固有的本地变量,它表达了调用这个方法的那个对象. ②在成员方法内部直接调用自己(thi ... 
- 关于hover与after,before已及first-letter,first-line的联用
			0920自我总结 关于hover与after,before已及first-letter,first-line的联用 一.写法 元素:hover::after{样式} 元素:hover::before{ ... 
- Flask 教程 第八章:粉丝
			本文翻译自The Flask Mega-Tutorial Part VIII: Followers 这是Flask Mega-Tutorial系列的第八部分,我将告诉你如何实现类似于Twitter和其 ... 
 
			
		

