Questions tagged [dbg]

37 questions
16
votes
3 answers

Unable to configure Notepad++ DBGP plugin. Xdebug already installed

I have installed xdebug on PHP but now I can't make the notepad++ DBGp plugin work. I have latest wamp version on Win7 and the wwww folder is on partition: d:\www. I have coded a test file test.php : And I…
Kandinski
  • 953
  • 11
  • 30
10
votes
2 answers

EUnit output debug info from tested modules

Let us say I have a module called example.erl In this module I use the following construct for debugging: %%% Switch debugging output on/off: %-define(DBG(Str, Args), ok). -define(DBG(Str, Args), io:format(Str, Args)). It helps me to output various…
skanatek
  • 5,133
  • 3
  • 47
  • 75
5
votes
1 answer

Using ptrace to detect debugger

I am trying to detect on Linux if a debugger is attached to my binary. I have found two solutions. One simpler: #include #include int main() { if (ptrace(PTRACE_TRACEME, 0, 1, 0) == -1) { printf("don't…
robert
  • 3,539
  • 3
  • 35
  • 56
5
votes
1 answer

Is there a tracing debugger like `dbg` available for Haskell or OCaml?

Is there a tracing debugger like dbg available for Haskell or OCaml? Very informally, it's printf-style debugging only better, completely configurable at runtime. In essence, the user can register a trace handler when a system is running, which will…
erszcz
  • 1,630
  • 10
  • 16
3
votes
1 answer

Avoiding output of huge binary params when tracing with dbg

I have to debug some code that passes around huge binaries in the params. For this I want to use a combination of dbg:tracer/0, dbg:p/2, dbg:tpl/3. But if I do this all the binaries are output every time which for one messes up the output so the…
Peer Stritzinger
  • 8,232
  • 2
  • 30
  • 43
3
votes
1 answer

erlang dbg module not work when use relx

I modified relx.config in a cowboy example,add runtime_tools {release, {echo_get_example, "1"}, [runtime_tools, echo_get]}. {extended_start_script, true}. when I use dbg:start() -> dbg:tracer() -> .... nothing outputs when calls then…
柚子youthy
  • 113
  • 8
3
votes
2 answers

Breakpoint with Condition

Is there a way how to set up more complex condition for breakpoints in QtCreator? (dbg) At least comparing the QStrings, but other complex type would be nice too. Integer comparing like in tutorials works fine.
Libor Tomsik
  • 668
  • 7
  • 24
3
votes
1 answer

Debug Cython with python-dbg fails with undefined symbol: Py_InitModule4_64

I am trying to debug a small cython project following the instructions from the official Cython page. but the command: python-dbg setup.py build_ext --inplace fails with the error below. I have seen responses to a similar issue here but I don't…
manolo__
  • 31
  • 4
3
votes
0 answers

how to define metadata for @llvm.dbg.declare?

I am trying to use @llvm.dbg.declare to get information about a variable inside llvm code I use the following code: define i32 @main() nounwind ssp { %1 = alloca i32, align 4 %tsi = alloca %struct.timespec, align 8 %tsf = alloca…
user3794683
  • 101
  • 1
  • 4
3
votes
1 answer

Why pid returned by dbg:tracer() differs from dbg:get_tracer()

1> dbg:get_tracer(). {error,{no_tracer_on_node,nonode@nohost}} 2> dbg:tracer(). {ok,<0.33.0>} 3> dbg:get_tracer(). {ok,<0.35.0>} The document tells: get_tracer returns the process or port to which all trace messages are sent. But it doesn't tells…
goofansu
  • 2,277
  • 3
  • 30
  • 48
2
votes
0 answers

erlang dbg module is not working included in relx

I have Erlang/OTP 19 [erts-8.3.5] and runtime_tools included in release, rel/reltool.config.script: [tools, runtime_tools];, but when I trying using dbg I got error: dbg:tracer(). ** exception error: undefined function dbg:tracer/0 Looks like…
Maryna Shabalina
  • 450
  • 3
  • 15
2
votes
1 answer

erlang dbg - trace calls to all functions by all functions

From Using trace and dbg in Erlang, I'm aware that one can trace calls to specified functions from all functions using 1>dbg:p(all, c). However, how does one trace calls to all functions from all functions? e.g: 1>dbg:foo(). *ALL Erlang function…
category
  • 2,113
  • 2
  • 22
  • 46
2
votes
1 answer

Android NDK | How to debugging app startup or suspend app until debugger connected

During investigation crash of my cocos2d-x app I faced with problem that debugger not stops in AppDelegate.cpp class at all. My assumption is: debugger could not connect before time when this code has been executed. Is my assumption correct? Is any…
CAMOBAP
  • 5,523
  • 8
  • 58
  • 93
2
votes
3 answers

IDA Pro Windbg Commands do not work

first things first: It was working when I used it last time (which is about more than a month ago). The Problem is, that no command which is from an extension is working, it seems like no extension is loaded. Only the default commands do work (like…
user1447648
  • 49
  • 1
  • 2
1
vote
1 answer

Ruby debug output - switch on/off easily

When I write draft and experimental code in Erlang I usually use this: %%% Switch debugging output on/off: -define(DBG(Str, Args), ok). %-define(DBG(Str, Args), io:format(Str, Args)). Commenting out just one line of code switches the debugging…
skanatek
  • 5,133
  • 3
  • 47
  • 75
1
2 3