comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Debuging
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Debuging [message #90404] Sun, 01 March 2015 07:23 Go to next message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
Folks,
hi,
I used to work with debug like this on IDL 7:

pro test , debug

do something...

if debug then print, 'cod startup is done'

end

this is not working in IDL 8. Will you pleas give me some tips to solve this.
Cheers,
Dave
Re: Debuging [message #90405 is a reply to message #90404] Sun, 01 March 2015 08:16 Go to previous messageGo to next message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
What isn't it working? What is the error message? How are you calling test.pro? What is "do something" doing? Can you reproduce the error in something simple?
Re: Debuging [message #90406 is a reply to message #90405] Sun, 01 March 2015 09:55 Go to previous messageGo to next message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Sunday, March 1, 2015 at 7:46:40 PM UTC+3:30, Matthew Argall wrote:
> What isn't it working? What is the error message? How are you calling test.pro? What is "do something" doing? Can you reproduce the error in something simple?

Hi,
this the error>

IDL> cd, 'C:\Documents and Settings\Dave\Desktop\data2\test\ENEA_lidar'
IDL> enea
% Compiled module: ENEA.
% Variable is undefined: DEBUG.

this a widget for reading and plotting laser data. i read some *.txt files, and and do some analysis, and then plotting. i have run this code on idl 7 but now that i have idl 8.0, this error is coming up.
Cheers,
Re: Debuging [message #90407 is a reply to message #90406] Sun, 01 March 2015 10:14 Go to previous messageGo to next message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
> % Variable is undefined: DEBUG.


You have not assigned a value to the variable DEBUG

IDL> help, a
A UNDEFINED = <Undefined>
IDL> if a then print, 'Debugging!' else print, 'Not debugging.'
% Variable is undefined: A.
% Execution halted at: $MAIN$


Interestingly, !NULL does not behave the same way

IDL> b = !Null
IDL> help, b
B UNDEFINED = !NULL
IDL> if b then print, 'Debugging!' else print, 'Not debugging.'
Not debugging.
Re: Debuging [message #90408 is a reply to message #90407] Sun, 01 March 2015 10:34 Go to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Sunday, March 1, 2015 at 9:44:16 PM UTC+3:30, Matthew Argall wrote:
>> % Variable is undefined: DEBUG.
>
>
> You have not assigned a value to the variable DEBUG
>
> IDL> help, a
> A UNDEFINED = <Undefined>
> IDL> if a then print, 'Debugging!' else print, 'Not debugging.'
> % Variable is undefined: A.
> % Execution halted at: $MAIN$
>
>
> Interestingly, !NULL does not behave the same way
>
> IDL> b = !Null
> IDL> help, b
> B UNDEFINED = !NULL
> IDL> if b then print, 'Debugging!' else print, 'Not debugging.'
> Not debugging.

yes that was the problem. i fixed that.
Thanks again,
Cheers,
Dave
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: CgTaylorDiagram
Next Topic: Re: star symbol in labels??

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:30:00 PDT 2025

Total time taken to generate the page: 0.00482 seconds