bashtrace, debugger for Bash scripts in Python

Publié le: 05 mai 2016
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne bashtrace, debugger for Bash scripts in Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Archived Yu-Jie Lin 05 mai 2016, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 969 fois et il a aimé 6 téléspectateurs. Bon visionnage!