Bashdb

De Linuxmemo.

http://bashdb.sourceforge.net/bashdb.html

Bash script debugger

Sommaire

[modifier] Invocation

bashdb nomduscript

[modifier] Commandes

[modifier] Mode pas à pas

  • aide
help
help nom_de_commande
  • Voir le code (10 ligne par défaut):
list

sont alias est "l"

list .
  • Avance l’exécution
step

sont alias est "s"

  • Afficher la valeur d'une variable
print $NOMVARIABLE

sont alias est "pr"

[modifier] Mode point d'arret

  • ajouter un "breakpoint" ou un "breakpoint" temporaire valable 1 seul fois
break numerodeligne
tbreak numerodeligne

break sont alias est "b" et pas d'alias pour tbreak

  • supprimer des "breakpoint"
clear numerodebreakpoint

ou

delete numerodebreakpoint

ou

delete (pour supprimer tout les "breakpoint"

sont alias est "d"

  • exécuter le script
continue numerodebreakpoint

ou

continue (jusqu'au prochain "breakpoint" ou la fin)

[modifier] Voir la valeur une variable

print $var

[modifier] Refs commandes

4.1 Command syntax	  	How to give commands to the BASH debugger
4.2 Getting help (‘help’)	  	How to ask for help (help)
4.3 Quitting the BASH debugger (‘quit’, ‘kill’)	  	Leaving the debugger (quit, kill)
4.4 Stopping and Resuming Execution	  	Stopping and continuing (break, watch, step, cont...)
4.5 Examining the Stack Frame (‘where’, ‘frame’, ‘up’, ‘down’)	  	Examining the stack frame (where, up, down, frame)
4.6 Examining Source Files (‘list’)	  	Printing source files (list)
4.7 Editing Source files (‘edit’)	  	Editing source files (edit)
4.8 Searching source files (‘search’, ‘reverse’, ‘/.../’, ‘?..?’)	  	Searching source files (/pat/ ?pat?)
4.9 Examining Data (‘print’, ‘examine’, ‘info variables’)	  	Examining data (print, examine, info variables)
4.10 Automatic display (‘display’, ‘undisplay’)	  	Executing expressions on stop (display, undisplay)
4.11 Running Arbitrary BASH and Shell commands (‘eval’, ‘shell’)	  	Arbitrary execution (eval, eval? shell)
4.12 Interfacing to the OS (‘cd’, ‘pwd’)	  	Interfacing to the OS (cd, pwd)
4.13 Status and Debugger Settings (‘info’, ‘show’)	  	Status and Debugger settings (info, show)
4.14 Controlling bashdb (‘set’, ‘file’, ‘prompt’, ‘history’...)	  	Controlling bashdb (annotate, file, prompt, history...)
Outils personnels