BasicMicroUK - Forums

www.basicmicro.co.uk
It is currently Tue Jan 23, 2018 6:27 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Debug ignored when preceded by Debugin
PostPosted: Mon Jan 14, 2013 7:55 pm 
Offline
Citizen

Joined: Tue Jan 08, 2013 8:58 pm
Posts: 10
Running Basic Micro Studio 2.0.0.18, under Windows XP SP2, Basic Atom Pro 24, the debug output function is ignored if preceded by debugin. Perusing the user manual, I found similar example code on page 98:

value var long
fvalue var float
debug [“Enter the starting integer value:”]
debugin [dec value]
debug [“Enter the starting real value:”]
debugin [real fvalue]
main
value = value + 1
fvalue = fvalue + 0.1
;output to Debug window using the DEC,HEX,BIN and REAL modifiers
debug [“Dec Value=”,dec value,” “]
debug [“Hex Value=”,hex value,” “]
debug [“Bin Value=”,bin value,” “]
debug [“Real Value=”,real fvalue,13]
goto main

Just as in the program I am trying to run, when this example code is run under "debug" and then "debugger, run," the debugins work fine and I can type in the data. At that point, however, there is no output from the debugs to the debugger window: the program just skips back to "main" and requests another "value" and "fvalue," and so on.

Now if I remove the debugin statements, replacing them with simple assignment statements (value = 1, fvalue =0.1), then the debug outputs work. So it appears that debugin is somehow messing up subsequent debugs.

I searched the forum but did not seem to find anyone else having this problem. Thanks for any help.


Top
 Profile  
 
 Post subject: Re: Debug ignored when preceded by Debugin
PostPosted: Mon Jan 14, 2013 10:46 pm 
Offline
Citizen

Joined: Tue Jan 08, 2013 8:58 pm
Posts: 10
PS to above post: apparently the debugin in, per se, is not the problem, but the "real" modifier on the fvalue variable. When I define fvalue as a "word" variable, and change the "real" modifier in the debugin statement to "dec," the debug output statements function (although the "real value" output never increases, of course, since fvalue is now an integer variable).

Any ideas why? I still do need to use debugin to enter a floating point number, as in the manual example. Thanks again.


Top
 Profile  
 
 Post subject: Re: Debug ignored when preceded by Debugin
PostPosted: Tue Jan 15, 2013 8:53 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 7:00 pm
Posts: 1316
Location: Temecula, CA
add a pause after the debugin and let me know what happens.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: Debug ignored when preceded by Debugin
PostPosted: Wed Jan 16, 2013 11:57 am 
Offline
Citizen

Joined: Tue Jan 08, 2013 8:58 pm
Posts: 10
No change with delays up to 1 second added after debugin.
Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO