Tag: 远程debugging

Pycharm和远程解释器(Docker)显示错误,但运行良好

我build立了一个使用包含anaconda和其他包的docker镜像的远程解释器。 我的Python项目然后从这个解释器运行。 代码本身运行完美。 问题是Pycharm本身不能识别软件包是否安装,并认为应该有错误,这同样适用于python函数,例如min,max和tuple。 一切运行良好,但它使阅读代码的噩梦。 (下图) 我在Mac OS X El capitan 10.11.6,Pycharm Pro 2016.2.3和Docker for Mac 1.12.1上运行

.Net Core Clrdebugging器VSDBG在Windows Docker容器中连接到远程进程时暂停应用程序

我有一个.net核心应用程序运行在一个Windowsdocker容器,我想附加VS代码。 当我连接到远程进程,似乎进程冻结,如果我断开debugging器,容器closures没有任何错误。 launch.json { "name": ".NET Core Remote Attach", "type": "coreclr", "request": "attach", "pipeTransport": { "pipeProgram": "powershell", "pipeArgs": ["docker exec -i –privileged amazing_johnson" ], "pipeCwd": "${workspaceRoot}", "debuggerPath": "c:\\coreclr-debug\\vsdbg.exe" }, "processId": "1736" }, debugging输出控制台中的结果: Starting: "powershell" "docker exec -i –privileged amazing_johnson" "c:\coreclr-debug\vsdbg.exe –interpreter=vscode" 将debugging器附加到远程进程后,当我尝试访问该站点时,它只是挂起,VSCode列出线程并在terminal中显示一些JSON,但没有任何反应。 断开连接会closures容器。 为什么发生这种情况?

PhpStorm映射path

我使用SSH和FTP访问设置了一个docker容器。 我的本地项目如下所示: /Users/gezimhome/projects/ziprecipes.net/zip-recipes是我的项目目录。 我的WordPress插件的源代码位于src文件夹中。 我有wordpress下载和本地解压在/Users/gezimhome/projects/ziprecipes.net/workdir/wordpress 。 以下是我的部署设置: 我的映射: 我的服务器: 在Docker容器中,wordpress在这里被下载和解压: /usr/share/nginx/html/wordpress/和我将/Users/gezimhome/projects/ziprecipes.net/zip-recipes/src映射到/usr/share/nginx/html/wordpress/wp-content/plugins/zip-recipes创build容器时。 Xdebug安装正确,因为我Incoming Connection from Xdebug屏幕上得到这个Incoming Connection from Xdebug : 所以,问题是,因为我已经有了映射为什么它不停地打扰我做一个映射wordpress文件? 而更大的问题是,为什么我的插件中的断点没有被打到?! 请帮忙 :(

使用docker-compose远程的byebug实例

有没有办法设置一个rails服务器,以便您可以连接远程byebug服务器和debugging很容易? 我已经完成了这个过去,通过设置的EPUB,然后启用一个轨道绑定在0.0.0.0和设置VIRTUAL_PORT = 3000,但我想知道是否有其他更简单的方法来debugging已经运行的容器。 我看着https://docs.docker.com/engine/reference/commandline/attach/,但无法正确设置它。

Xdebug忽略Netbeans中的Docker容器内创build的Php项目的断点

当我debugging不在Docker容器内创build的项目时,Xdebug没有问题。 但是,当我debugging在Docker容器内创build的项目时,Xdebug不会在断点上停止 – 尽pipe它正在运行并停在xdebug_break()上。 我的Docker主机是Ubuntu 14.04。 它被安装为VirtualBox。 它使用PHP 5.5.9-1ubuntu4.16和Xdebug v2.2.3。 我有一个已安装的卷(在Docker主机和Docker容器之间),其中存储了在Docker容器内创build的项目。 Ubuntu 14.0.4中的Docker容器基于CentOS 6.7(Final)。 它使用PHP 5.3.29和Xdebug v2.1.4,它的Xdebugconfiguration如下(在/etc/php.d/xdebug.ini中): zend_extension=/usr/lib64/php/modules/xdebug.so ;xdebug.remote_autostart = 0 xdebug.remote_autostart = 1 xdebug.remote_connect_back = 1 xdebug.remote_enable = 1 ;xdebug.remote_host = 127.0.0.1 ;xdebug.remote_host = localhost ;xdebug.remote_host = 172.17.42.1 ;xdebug.remote_host = 10.0.2.15 ;xdebug.remote_host = 10.0.2.2 ;xdebug.remote_port = 9001 xdebug.remote_port = 9000 xdebug.remote_handler = dbgp xdebug.profiler_enable_trigger […]

如何用IntelliJdebugging在Docker中运行的应用程序?

我有一个docker运行的docker应用程序。 我想用我的本地IntelliJdebugging这个应用程序。 我在v 14.1,所以我已经安装了Docker集成插件。 在“云”下,我使用的是当我点击“+”时显示的默认值。 IntelliJ文档说这应该是好的。 在这里 API URL: http://127.0.0.1:2376 Certificates folder: <empty> 我不确定这些用法是什么,所以我不知道这些值是否正确。 在“运行/debugging”configuration下,我正在使用Docker部署,并提供以下值: Deployment: Docker Image Image ID: The docker image ID Container name: The name of the container 当我尝试运行这个,我得到javax.ws.rs.ProcessingException:org.apache.http.conn.HttpHostConnectException:连接到http://127.0.0.1:2376 [/ 127.0.0.1]失败:连接被拒绝 很显然,我使用的API URL值不正确。 有什么值应该是什么build议? 我的debugging选项是: -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n -Djava.compiler=NONE

从运行tomcat服务器的docker容器获取debugging信息

首先,对不起我的英文:-) 其次,我想在Docker容器中运行和debugging我的Spring应用程序。 与应用程序的容器启动没有任何问题,我可以从浏览器到达应用程序。 我正在Linux Mint的IntelliJ IDEA中开发它,我想从我的容器中检索debugging信息。 但是当我以debugging模式启动应用程序时,IDEA告诉我: 无法检索debugging连接:java.net.MalformedURLException:未知协议:unix 这是我的Dockerfile: FROM tomcat:8-jre8 RUN apt-get update -y && apt-get install -y \ curl \ vim RUN rm -rfd /usr/local/tomcat/webapps/ROOT RUN mkdir -p /usr/local/tomcat/conf/Catalina/localhost RUN echo "<Context docBase=\"/usr/local/tomcat/webapps/ROOT\" path=\"\" reloadable=\"true\" />" >> /usr/local/tomcat/conf/Catalina/localhost/ROOT.xml ENV JPDA_ADDRESS=8000 ENV JPDA_TRANSPORT=dt_socket ENV JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,address=8000,suspend=n,server=y EXPOSE 8000 8080 在运行configuration端口绑定是正确的,应用程序部署成功。 有人可以帮我吗? 🙂

更好的方式远程debuggingDocker容器与Eclipse + Pydev的Odoo / Python?

有没有更好的方式来描述下面的方式 http://pydev.org/manual_adv_remote_debugger.html 没有把下面的东西 import sys; sys.path.append(r'path_to\pydev\plugins\org.python.pydev\pysrc') import pydevd 没有用鼠标点击断点,并把它放在下面的源代码位置 pydevd.settrace('10.0.0.1') 在上面的方法中工作良好,但是在使代码更复杂的情况下,鼠标点击断点将会更好。 有没有更好的方法来在python / Odoo中进行debugging?

如何debugging在docker容器内运行的rails应用程序

我正试图在使用docker的rails应用程序中执行debugging器。我们的应用程序服务器在Ubuntuterminal中执行:docker -compose up 。 我没有find运行debugging器的方法。 我们不能使用rails s –debugger。 有什么方法来debugging我们与docker集成的rails应用程序。 当我将debugging器保存在应用程序文件中时,我们在控制台中得到输出:{*****debugging器请求,但不可用(确保ruby-debug在Gemfile中列出/安装为gem):使用–debugger启动服务器以启用* ****}

使用pycharmdebugging器debugging在docker镜像中运行的django应用程序

我的应用程序在Docker镜像中运行(我的开发团队从不在他们的机器上安装软件,只有Docker镜像具有依赖关系)。 我需要debugging的东西使用pycharmdebugging器,我如何将pycharm的debugging器连接到docker的图像的Python?