如何为App Engine应用设置vscode Python调试器? [英] How to setup vscode Python debugger for an app engine app?

查看:63
本文介绍了如何为App Engine应用设置vscode Python调试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照官方 Wiki 使用断点启动或设置断点时,我始终收到以下错误:

After following the steps in the official wiki I keep getting the following error when launching with breakpoints or setting breakpoints:

    /ptvsd/wrapper.py", line 423, in pydevd_request
    os.write(self.pipe_w, s.encode('utf8'))
  File "google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/stubs.py", line 40, in os_error_not_implemented
    raise OSError(errno.ENOSYS, 'Function not implemented')
OSError: [Errno 38] Function not implemented

该应用程序无论如何都会运行,但是断点永远不会被击中.似乎ptvsd尝试使用被App Engine沙盒环境阻止的某些方法.我在python virtualenv中运行vscode,有什么线索吗?

The application runs anyway but the breakpoints are never hit. It seems that ptvsd is trying to use some method that is blocked by the app engine sandboxed environment. I'm running vscode in a python virtualenv, any clue?

推荐答案

我的解决方案是使用PyCharm社区版的调试器,该调试器可能更强大,并且适用于Python特定调试的调试器.

My solution was to use PyCharm community edition's debugger, its similar perhaps more capable IDE and debugger for Python specific debugging.

这篇关于如何为App Engine应用设置vscode Python调试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆