dxclear.pro
1.13 KB
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
;+
; NAME:
; DXCLEAR
;
; AUTHOR:
; Craig B. Markwardt, NASA/GSFC Code 662, Greenbelt, MD 20770
; craigm@lheamail.gsfc.nasa.gov
;
; PURPOSE:
; Clears an IDL breakpoint
;
; CALLING SEQUENCE:
; DXCLEAR, INDEX
;
; DESCRIPTION:
;
; DXBREAK is a convenience routine for clearing IDL breakpoints.
; Its primary benefits are that it is symmetric with DXBREAK, and it
; requires fewer characters to type.
;
; INPUTS:
;
; INDEX - the breakpoint number, as listed by HELP, /BREAKPOINT.
;
;
; EXAMPLE:
;
; dxclear, 0
;
; Clear breakpoint number 0
;
; SEE ALSO:
;
; BREAKPOINT, DXBREAK
;
; MODIFICATION HISTORY:
; Written, 15 Apr 2000
;
;
; $Id: dxclear.pro,v 1.2 2001/02/09 04:57:15 craigm Exp $
;
;-
; Copyright (C) 2000, Craig Markwardt
; This software is provided as is without any warranty whatsoever.
; Permission to use, copy, modify, and distribute modified or
; unmodified copies is granted, provided this copyright and disclaimer
; are included unchanged.
;-
pro dxclear, index0
catch, catcherr
if catcherr NE 0 then return
if n_elements(index0) EQ 0 then return
index = floor(index0(0))
breakpoint, index, /clear
end