bashtrace, debugger for Bash scripts in Python

Veröffentlicht am: 05 Mai 2016
auf dem Kanal: Archived Yu-Jie Lin
969
6

bashtrace [1] is the first debugger with UI I have ever tried.

You have output by line number on the right, the script content in the main window with syntax highlighting, and call stack on top (0:10).

Debugging functions includes step, skip, continue, evaluate (0:28), return, and input (0:05), just like common debugger in most parts.

There are a few command-line options (0:02), such as `--break`, which allows you to set up breakpoint but you can't set up breakpoint in the UI.

$$$#

% ./bashtrace.py -b : test.sh
% cat test.sh
#!/bin/bash

sayhi()
{
echo hi
}

read TO

for ((i = 0; i != TO; i++)); do # != for YouTube description
((i % 2)) && echo $i || sayhi
done

$$$#

git-a8ba9b07ab41009a22fd47220d18b58f7b65fc66 (2016-05-04)
In Python and Bash with ncurses
By Radek Brich
MIT License

[1]: https://github.com/rbrich/bashtrace


Auf dieser Seite können Sie das Online-Video bashtrace, debugger for Bash scripts in Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Archived Yu-Jie Lin 05 Mai 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 969 Mal angesehen und es wurde von 6 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!