Questions tagged [trepan]

The trepan debuggers are gdb-like debuggers for languages other than those supported by gdb. They all have a similar code base. One thing that distinguishes them from equivalent high-level debuggers is that, to the extent possible, they make use of and offer lower-level information.

The available trepan debuggers are include:

  1. trepan2 and trepan3k for Python 2 & 3
  2. trepanjs and trepan-ni for Nodejs
  3. trepanning for a modified Ruby runtime
  4. Devel::Trepan for Perl

Other trepanning debuggers, that don't have trepan in the name are:

14 questions
23
votes
8 answers

ddd hangs on start

Question has been asked before and I see bug report on ddd newsgroups but none of the suggested solutions work for me. It comes up but when you try doing anything like opening a file it hangs with the message "waiting until GDB gets ready." A…
c-urchin
  • 4,344
  • 6
  • 28
  • 30
4
votes
2 answers

BASH_REMATCH empty

I'm trying capture the some input regex in Bash but BASH_REMATCH comes EMPTY #!/usr/bin/env /bin/bash INPUT=$(cat…
Alex Culea
  • 81
  • 1
  • 7
3
votes
2 answers

bash --debugger does not work on with bash 4.3 on a script with no arguments after installing bashdb

I installed bashdb on fedora 21 which uses bash 4.3 . I need to run using --debugger because I want $0 to be set correctly to the name of the script rather than bashdb. bash --debugger my.bash But the script is just executed, there is no debug…
ericj
  • 2,138
  • 27
  • 44
2
votes
3 answers

getting the C python exec argument string or accessing the evaluation stack

In my python debugger I have a way of remapping a string to a filename so that when you are stepping through an exec'd function inside the debugger you can list lines pygmentized, or view them along inside an editor like Emacs via realgud. So I'd…
rocky
  • 7,226
  • 3
  • 33
  • 74
2
votes
2 answers

Exact Perl location such as with B::Deparse

A long-standing problem in Perl is how to identify a location with finer granularity than a line number. (Follow the link for more information.) This question is about how to get that. The most promising way to do this is to use the Perl opcode…
rocky
  • 7,226
  • 3
  • 33
  • 74
1
vote
1 answer

how to make the breakpoint work in the bashdb

i follow this manual to lean to use the bashdb: http://archive09.linux.com/articles/153383.html#commentthis And when i use the bashdb to bt the script: #!/bin/bash version="0.01"; fibonacci() { n=${1:?If you want the nth fibonacci number, you…
kaiwii ho
  • 1,367
  • 7
  • 21
  • 40
1
vote
1 answer

KeyError: 'darkblue' when using trepan3k

I installed trepan3k with pip3 install trepan3k and I want to debug a file with trepan3k main.py, but I'm getting this error: Traceback (most recent call last): File "/usr/local/bin/trepan3k", line 10, in sys.exit(main()) File…
Nbfour
  • 145
  • 3
  • 10
1
vote
1 answer

bashdb: Can I examine the data flowing through a pipe?

I'm trying to debug a bash script that involves a command of the form: VAR=$(cmd1|cmd2|cmd3) I can debug it in bashdb, using the s command, which does something like this: bashdb(2): s 2: VAR=$(cmd1|cmd2|cmd3) cmd1 bashdb(3): s 2: …
MathewI
  • 404
  • 2
  • 6
1
vote
3 answers

Installing trepan debugger for Python 3 on Ubuntu 14.04

I am using Ubuntu 14.04 with Python version 2.7.6. I recently installed Python version 3.4.2 side-by-side with the system Python using pyenv. Now I would like to test out some debuggers for Python 3, and I downloaded trepan-0.2.8-py3.3.egg from the…
Håkon Hægland
  • 39,012
  • 21
  • 81
  • 174
0
votes
2 answers

Cannot import name 'iscode' from 'xdis' when using 'trepan3k'

I am trying to use trepan3k to debug a .pyc file. However, when I typed the command trepan3k flag.pyc, it gave me the error: Cannot import name 'iscode' from 'xdis'. I am using MacOS, with Python 3.8.0.
FRANKfisher
  • 121
  • 3
  • 12
0
votes
1 answer

Is it possible to list breakpoints with trepan2 python debugger?

I was initially very impressed by some of the advanced features of the trepan2 debugger. But it does not appear to have any command to list breakpoints. That seems like a bizarre oversight. Does anyone know is there a command to list the…
Chip Grandits
  • 317
  • 1
  • 9
0
votes
1 answer

bashdb error after adding user to group listed via ls -l $(tty)

I see that this question has been posted and answered. However, the post answer does not work for me. The posted answer has 2 solutions: 1 - run bashdb as root this does not work for me because the script I am trying to debug must be run as mqm.…
J. Davis
  • 1
  • 1
0
votes
1 answer

Debugging a bash script in a container gives a process on the host?

I start a container with name pg.I wanted to debug a bash script in a container, so I installed bashdb in the container. I started it: root@f8693085f270:/# /usr/share/bin/bashdb docker-entrypoint.sh postgres I go back to the host, and…
ericj
  • 2,138
  • 27
  • 44
0
votes
1 answer

bashdb startup error: bashdb/lib/setshow.sh: line 91: /dev/pts/2: Permission denied

I'm trying to use bashdb on CentOS 4.1 (unfortunately I can't choose a different/newer OS). I installed bash 4.2 then bashdb 4.2-0.8. THere were no complaints from configure, make, make checks, or make install: everything looked peachy. But trying…
Alan
  • 45
  • 5