Home »
Public Forums »
archive »
Re: Debugging w/widgets
Re: Debugging w/widgets [message #3106] |
Thu, 17 November 1994 03:08 |
sjt
Messages: 72 Registered: November 1993
|
Member |
|
|
mallozzi@ssl.msfc.nasa.gov wrote:
: One of the strengths of IDL that I like is that I can use STOP
: statements in my procedures/functions to examine local variables
: for debugging purposes. I recently started to program with widgets, and
: I find that STOP now stops in XMANAGER. This seems like a major step
: backwards. What's the deal?
: mallozzi@ssl.msfc.nasa.gov
An explicit "on_error,0" before creating the menus etc. will certainly
allow a crashed program to stop at the place where the error happened.
However anything which hands control back to the terminal will
inevitably screw up the XMANAGER so that you won't be able to use them.
This is a consequence of the way in which the XMANAGER works:
It's just an ordinary IDL library routine which looks for widget events
and determines which widget sent them and then makes the corresponding
call to the handler, so it has to be running and to have control in order
to do this. I believe that RSI intend at some time in the indeterminate
future to make it a built-in part of the interpreter in which case
sharing control between the keyboard and the widgets would be possible
(as is the case for the MAN_PROC procedure).
--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@xun8.sr.bham.ac.uk | University of Birmingham | -- \/` |
| "If all else fails--read the instructions!" | |
+----------------------------------------------------------- --+---------+
|
|
|
Current Time: Sat Oct 11 08:38:23 PDT 2025
Total time taken to generate the page: 0.40118 seconds