问题标签 [geben]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1053 浏览

emacs - 如何在 Windows 上为 Emacs 设置 geben?

我在 Windows上设置geben-on-emacs时遇到问题。我有:

  • GNU Emacs 23.0.60.1
  • 格本 0.22
  • xampp 1.7.0
  • Xdebug 2.0.4

本机Debugclient工作正常:调试会话建立,我可以发出各种调试命令。

这就是我尝试使用 geben 进行调试时发生的情况:

  • 问题Mx geben。获取Waiting for debug server to connect at 9000 端口响应。
  • http://localhost/test.php?XDEBUG_SESSION_START=mydebug在浏览器中打开。

在这个阶段 PHP 脚本被加载但次要模式没有设置 geben-mode。所以 SPC、i、o、r、g 等不起作用。如果我尝试手动发出命令(例如M-x geben-run),什么也不会发生。我可以切换到 *GEBEN<127.0.0.1:900: buffer 并手动输入DBGp命令。

消息缓冲区有这一行,不确定是否相关:

无法加载颜色“亮蓝色”

我做错了什么?

0 投票
2 回答
787 浏览

emacs - Geben for Ubuntu 10.04 上的 emacs

我已经让 geben 在以前版本的 Ubuntu 上完美运行。升级后,安装最新版本的geben(0.26),它只工作了一半。具体来说,在上下文模式下,局部变量总是被标记为未定义。

是否有人在 Ubuntu 10.04 下成功启动并运行了 geben,或者这是 geben 中的一个错误(我已将其报告为 one,但我想我会在这里检查一下,以防万一有解决方法)。

  • 格本 0.26
  • xdebug 2.0.5
  • emacs 23.1.1
  • 5.3.2-1ubuntu4.1

谢谢!

0 投票
1 回答
720 浏览

php - Emacs+geben:调试时打开本地文件而不是远程文件

先决条件

  • 带有 PHP 和 xdebug 的 Web 服务器。通过 NFS 共享的 htdocs 目录。
  • 使用 geben 运行 emacs 的开发人员机器。通过服务器 htdocs 目录的 NFS 挂载编辑的文件。

问题

使用 emacs 和geben调试 PHP Web 应用程序时,打开的 Web 应用程序文件不是本地文件,而是代表服务器上文件内容的“虚拟”文件。

我遇到的主要问题是我无法直接编辑文件,因为我会在服务器上更改它们,这会导致几件事:

  • 更改临时文件会导致 emacs 要求我提供 ssh 登录凭据
  • 更改临时文件,emacs 想要重新加载原始打开的文件,因为它们已更改
  • 临时文件上没有跳转标记

理想情况下,需要设置远程路径到本地路径的映射,但我认为目前使用 geben 是不可能的。这个问题有解决方案吗?

0 投票
1 回答
992 浏览

emacs - emacs+geben how do I open a file to put breakpoints in it

When I'm debugging code in a framework, it usually goes through a bunch of different calls in different files before actually getting to the file I want to investigate. Is there a way to open the file I want when I start geben, put the breakpoint in that file then tell geben to run (press g)?

Otherwise I have to keep stepping over/into until geben finally get's to the file I want, at which point I can then go to the line I want and set the breakpoint.

0 投票
0 回答
516 浏览

php - xdebug from remote server and emacs/geben

I'm trying to debug a php script running inside apache on a remote server by using geben (0.24) on emacs (24.2.1) on a local box. xdebug connects, but the php script is not opened in a geben buffer. Instead, a comint buffer is opened, which is connected to xdebug on the remote server. I'm able to use this buffer to debug via raw dbgp commands, but not via a geben buffer. Do you know why this might be so? There is a customizable variable "geben-visit-remote-file", which is set to nil, should this be set to something? I'm quite lost...

0 投票
1 回答
1575 浏览

php - Debugging multi-file PHP script with Emacs and GEBEN

I have XDebug working fine on my local machine (I have apache running locally) and I am able to debug php scripts fine with eclipse. I prefer to edit files with emacs, however, and so I came across the GEBEN package. I installed it fine, and I am able to set breakpoints in my script and everything seems to work fine...

I am now trying to debug a cakePHP app, and I need to set breakpoints in files that are different than the file loaded into emacs when geben starts. Here's what's going on:

  1. I start my web server, php, and all that.
  2. I start emacs, and run the command M-x geben. It tells me that it is now listening on port 9000
  3. I browse to the page I want to step through (http://url?XDEBUG_SESSION_START)
  4. The initial PHP file is loaded into emacs, and I can set breakpoints, step over, etc.

How can I set breakpoints in files that are included from that initial PHP file? I have tried opening the files, and starting the geben minor mode, but when I run the command geben-set-breakpoint-line nothing seems to happen.

Am I missing something?

0 投票
1 回答
133 浏览

debugging - 如何清除 geben 调用断点?

使用 emacs geben 插件,我通过断点菜单向我的 php 应用程序添加了断点: whereB打开一个菜单,您可以从中进行选择

1) 线路 2) 呼叫...等

我已选择call函数名称并将其添加到断点列表中。

但与行不同(您可以分别按下bu设置和取消设置断点,函数调用断点只是在该点不断中断。我如何摆脱调用断点?

0 投票
0 回答
181 浏览

php - emacs make-network-process 失败,如何调试?

我一直在 emacs 上使用 geben 就好了。

重新启动后,我无法运行 geben。

我调试了 elisp 并发现make-network-process产生错误,但我无法调试它,因为它是原生的。

错误输出是 (file-error "make server process failed" "Success" :name "DBGp listener<10003>" :server 1 :service 10003 :family ipv4 :nowait t :noquery t :filter dbgp-comint-setup :sentinel dbg\ p-listener-sentinel :log dbgp-listener-log)

我该如何解决?

0 投票
0 回答
63 浏览

php - 如何在 Geben(Xdebug 的 Emacs 远程调试客户端)中查看函数/方法的返回值?

使用 Geben 通过 Emacs 调试 PHP 代码。有时,在单步执行方法/功能代码时,我会遇到如下代码:

表达式本身是不相关的。我想知道的是该表达式的值,它将在退出函数调用之前返回给调用者。有没有办法用 Geben 做到这一点?

提前致谢。