【问题】
环境:
Eclipse 3.6
PyDev 1.6
Python 2.6
错误:
Unexpected IO Exception in Pydev debugger |
相关数据是:
eclipse.buildId=I20100608-0911 |
【解决过程】
1.从:
中,倒是找到了源码了:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | /** * Class preparates configuration for launching. * * @author Borislav Andruschuk * @since GrinderStone 1.0 */ public class GrinderLaunchConfigurationDelegate extends AbstractLaunchConfigurationDelegate { @Override protected String getRunnerConfigRun() { return GrinderRunnerConfig.RUN_GRINDER; } @Override public void launch(ILaunchConfiguration conf, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null ) { monitor = new NullProgressMonitor(); } monitor.beginTask( "Preparing configuration" , 3 ); try { PythonRunnerConfig runConfig = new GrinderRunnerConfig(conf, mode); monitor.worked( 1 ); try { PythonRunner.run(runConfig, launch, monitor); } catch (IOException e) { Log.log(e); throw new CoreException(GrinderStonePlugin.makeStatus(IStatus.ERROR, "Unexpected IO Exception in Pydev debugger" , null )); } } catch ( final InvalidRunException e) { handleError(launch, e); } catch (MisconfigurationException e) { handleError(launch, e); } } |
但是无助于问题解决。
2.后来参考:
得知,升级PyDev到1.6.1,即可解决此问题。
【总结】
很多东西,如果有问题,不妨尝试使用最新版本。往往会有意外收获。
注:截止2013-01-02,PyDev,最新版已经是 2.7.0了。
转载请注明:在路上 » 【已解决】Eclipse+PyDev无法调试Python:Unexpected IO Exception in Pydev debugger