我已经安装xdebug上PHP,但现在我不能让notepad++ DBGp插件工作.
我有最新wamp的版本Win7和wwww文件夹位于分区:d:\www.
我编写了一个测试文件test.php:
<?php
$test = "3";
echo $test;
?>
Run Code Online (Sandbox Code Playgroud)
我尝试使用以下链接在Web浏览器中打开它:
http://localhost/test.php?XDEBUG_SESSION_START=test
Run Code Online (Sandbox Code Playgroud)
但是DBGp不会连接.我有没有尝试过IDE_Key.
我已多次浏览文档,但无法找到/解决问题.希望有人能够知道原因.
以下是一些屏幕截图:
谢谢


我们说我有一个名为的模块 example.erl
在本单元中,我使用以下构造进行调试:
%%% Switch debugging output on/off:
%-define(DBG(Str, Args), ok).
-define(DBG(Str, Args), io:format(Str, Args)).
Run Code Online (Sandbox Code Playgroud)
它帮助我将各种调试信息输出到Erlang shell:
?DBG("Function fun1 starting... ~n", [])
Run Code Online (Sandbox Code Playgroud)
但是,如果我打电话example.erl从example_tests使用example:test(),这个输出信息不会出现.
如何在EUnit测试期间将其显示出来?
UPD:我找到了一些相关信息,但我仍然不知道如何解决这个问题.
是否有dbg可用于Haskell或OCaml 的跟踪调试器?
非正式地说,它的printf风格调试只是更好,在运行时完全可配置.本质上,用户可以在系统运行时注册跟踪处理程序,这将在运行时支持的一组操作中对每个操作进行调用(例如,在每个函数调用/返回时,在发送/接收的每个消息上等) .这样的处理程序可以记录每个操作,这给出了系统(部分)中发生的所有步骤的良好序列.
此机制可用于记录/调试,分析系统的某些部分,但在许多情况下,仅用于发现新的(程序员未知)系统的工作方式.
我试图在Linux上检测是否有调试器附加到我的二进制文件上。我找到了两种解决方案。一个简单的:
#include <stdio.h>
#include <sys/ptrace.h>
int main()
{
if (ptrace(PTRACE_TRACEME, 0, 1, 0) == -1)
{
printf("don't trace me !!\n");
return 1;
}
// normal execution
return 0;
}
Run Code Online (Sandbox Code Playgroud)
还有一个:
#include <sys/types.h>
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ptrace.h>
#include <sys/wait.h>
int spc_detect_ptrace(void) {
int status, waitrc;
pid_t child, parent;
parent = getpid();
if (!(child = fork())) {
/* this is the child process */
if (ptrace(PT_ATTACH, parent, 0, 0)) exit(1);
do {
waitrc = waitpid(parent, &status, …Run Code Online (Sandbox Code Playgroud) 从在Erlang中使用trace和dbg,我知道可以使用所有函数跟踪对指定函数的调用
1>dbg:p(all, c).
Run Code Online (Sandbox Code Playgroud)
但是,一个跟踪如何调用所有函数中的所有函数?例如:
1>dbg:foo().
*ALL Erlang function calls will be traced from here on out. Prepare yourself.*
2>lists:append("abc", "def").
*trace*
Run Code Online (Sandbox Code Playgroud) 我正在 ubuntu 上安装 dbg 调试器。当我使用 wine 命令启动 dbg 调试器后。我遇到了这个问题:
未处理的异常:未实现的函数 msvcr120.dll.?_Id@_CurrentScheduler@details@Concurrency@@SAIXZ 在 64 位代码中调用 (0x000000007b44f037)。
我检查了目录,msvcr120.dll就在那里。但是,我不知道为什么它无法实施。我尝试了 32 位和 64 位版本的 dbg。他们都有类似的问题。
任何答案和评论表示赞赏。谢谢!