Debug your shell scripts with bashdb


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements UNIX and Linux RSS News Debug your shell scripts with bashdb
# 1  
Old 11-24-2008
Debug your shell scripts with bashdb

11-24-2008 11:00 AM
The Bash Debugger Project (bashdb) lets you set breakpoints, inspect variables, perform a backtrace, and step through a bash script line by line. In other words, it provides the features you expect in a C/C++ debugger to anyone programming a bash script.



Source...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

"Help debug the shell script"

Hello All, I have got a section of shell script which was working earlier but now it is giving some different results: MSG= while true do themenu getchar = case $answer in 1) export_Config_tables;; 2) export_config_tables_file;; 3)... (1 Reply)
Discussion started by: bghosh
1 Replies

2. Shell Programming and Scripting

Bashdb - new user basic questions

This may be too silly and definitely way to early to ask . I'll admit have read about 5% of documentation so far , but can you make bashdb to step thru the file "automatically" by setting some kind of timeout? and second how do you stop the process ? Is "quit" the only... (1 Reply)
Discussion started by: annacreek
1 Replies

3. Shell Programming and Scripting

Logging perl and shell debug mode.

I have a shell program which calls a perl program. I am running the shell program with command; $ ksh -x <prog_name> Inside the shell program, I am calling perl with warnings. I want to capture the entire output as it comes on screen. The command I tried is: $ ksh -x... (1 Reply)
Discussion started by: som.nitk
1 Replies

4. Shell Programming and Scripting

How to compile or debug line by line in shell script?

I know about bash -x, set -x and -v but disappears from Command Line Interface in fraction of second ...... I am looking for a command or script ..complies each line and shows the output after executing each line ....( similar what we have in C ) Thanks in Advance (2 Replies)
Discussion started by: frintocf
2 Replies

5. Shell Programming and Scripting

Cant debug shell script

Hi I am relatively new in shell scripting Below is the code which i developed but for some reason, it keeps giving me error: /apps/bss/BatchProg/at1/batch/scripts/ksh/TBATLC02.ksh: syntax error at line 41 : `then' unmatched #!/usr/bin/ksh... (4 Replies)
Discussion started by: scripting_newbe
4 Replies

6. Shell Programming and Scripting

calling 'n' number of shell scripts based on dependency in one shell script.

Hello gurus, I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script. i m looking for something like this call 3.1; If 3.1 = "complete" then call 3.2; if 3.2 = ''COMPlete" then call 3.3; else exit The... (1 Reply)
Discussion started by: shashi369
1 Replies

7. Shell Programming and Scripting

Please help to debug a small shell script (maybe AWK problem)?

Hi Buddies, The following is shell scripts which was borrowed from linux box for load average check. it runs good. (this structure is simple, when load average is too high, it will send alert to user) #!/usr/bin/ksh # Set threshold for 1, 5 and 15 minture load avarage # configured for... (4 Replies)
Discussion started by: GreatJerry
4 Replies

8. UNIX for Advanced & Expert Users

How can debug our UNIX shell script?

Hi all, i have two simple questions here... 1. i want to know that how to debug the UNIX shell script? 2. is there any way to handling the exception in UNIX shell script like oracle exception handling? Please provide me those details it would be great help/ Thanks and Regards, MPS... (3 Replies)
Discussion started by: psiva_arul
3 Replies

9. Shell Programming and Scripting

what's the debug command for perl scripts

Hi, Can you please let me know if there's any debug command for perl scripts like set -x for shell scripts (2 Replies)
Discussion started by: dayanandra
2 Replies

10. AIX

Difference between writing Unix Shell script and AIX Shell Scripts

Hi, Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies
Login or Register to Ask a Question
BAM(1)								   User Commands							    BAM(1)

NAME
bam - fast and flexible build system SYNOPSIS
bam [OPTION]... [VARIABLE=VALUE]... [TARGET]... DESCRIPTION
Builds applications using the bam build system. Execution: -a abort on error -c clean targets -d build targets that is dependent given targets --dry dry run, don't run any jobs -j sets the number of threads to use (default: 0, disabled) -s bam file to use (default: bam.lua) Lua: -l print local variables in backtrace -t print backtrace when an error occurs Output: -r build progress report format (default: s) b = progress bar c = use ansi colors s = build steps -v be verbose Other: -n don't use cache -h, --help prints this help Debug: --debug-nodes prints all the nodes with dependencies --debug-detail prints all the nodes with dependencies and details --debug-jobs prints all the jobs that exist --debug-dot prints all nodes as a graphviz dot file --debug-jobs-dot prints all jobs as a graphviz dot file --debug-trace-vm prints a line for every instruction the vm makes --debug-dump-int prints the internals scripts to stdout --debug-no-int don't load internal scripts bam by Magnus Auvinen (magnus.auvinen@gmail.com) bam May 2011 BAM(1)