我试图在Python开发中使用Codenvy。但是,它们似乎没有嵌入式调试解决方案。
所以我去了他们的帮助论坛,像我这样的人要求一个调试器功能。
以下是他们的答复:
Codenvy允许您为所需的任何语言设置任何调试环境,正如您通过Dockerfile所需要的那样。我们的docs [http://docs.codenvy.com/user/creating-custom-builder-runner-environments/#custom-overview]概述了如何设置它。 如果您的当前IDE提供了足够的调试功能,那么现在可以通过我们的CLI将其与Codenvy一起使用。关于我们的CLI的文档在这里:[http://docs.codenvy.com/cli/]
但是,我不知道他们通过一个坞文件设置它是什么意思。我确实找到了一些线索
# Codenvy uses this port to map IDE clients to the debugger
# of your application within the Runner. Set these
# values to the port of your debugger and Codenvy will
# map this port to the debugger console in the browser.
# You can set this value multiple times.
# For example:
# ENV CODENVY_APP_PORT_8000_DEBUG 8000
#
# ENV CODENVY_APP_PORT_<port>_DEBUG <port>
# Set this value to the port of any terminals operating
# within your runner. If you inherit a base image from
# codenvy/shellinabox (or any of our images that inherit
# from it, you do not need to set this value. We already
# set it for you.
# ENV CODENVY_WEB_SHELL_PORT <port>这是否意味着我需要使用外部IDE来调试?有人能指引我通过吗?
发布于 2015-04-09 18:59:59
您可能希望尝试远程调试,即在Codenvy中运行脚本并使用本地IDE调试器连接到with。PyCharm有一些关于如何做到这一点的很好的教程。只需确保使用正确的端口,即映射端口。
Codenvy没有内置的Python调试器,但是可以使用pdb。
将其导入Python脚本,然后,不要设置断点,只需插入:
pdb.set_trace() 发布于 2015-03-31 09:01:23
我不是专家,但我怀疑你的部分答案可能会在这里找到http://blog.codenvy.com/cooking-custom-build-environments/,否则你可以给http://thecli.blogspot.it/2014/12/diving-into-codenvy.html的作者发电子邮件。
https://stackoverflow.com/questions/29199133
复制相似问题