1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
set trace-commands on
#
# Test of breakpoint handling
#
# Test the simplest of breakpoints
break 22
info break
###############################################################
#### Test enable/disable...
enable 1
disable 1
################################################################
#### Try setting breakpoints outside of the file range...
break 99
break 0
#
# list breakpoints
L
#### Try Deleting a non-existent breakpoint...
clear 10
d 0
###############################################################
#### Test display status...
delete 1
info break
break 22
info break
###############################################################
#### *** Test using file:line format on break...
break ./dbg-test1.sh:23
break ./dbg-test1.sh:0
break ./dbg-test1.sh:1955
break 23
info break
delete 3
###############################################################
#### Test breakpoints with conditions...
break 23 if x==0
break 24 y > 25
info break
condition 23
condition
info break
condition x==1
condition 4 x==1
condition bad
condition 30 y==1
disable 2 5
info break
enable 2 6
delete 2 6
#### Test info break...
info break 11
info break foo
info break 5
d 23
L
quit
|