> On Mar 9, 2008, at 8:20 AM, Andrew Porrett wrote:
>
>
>> At 10:39 AM 3/9/2008, Brian Lloyd wrote:
>>
>>> I have run into a bit of a debugging problem and would love to be
>>> able
>>> to look at the state of an object or a variable at run time.
>>>
>> You can use the serial port object to send debug data messages to
>> your PC and you can use SCP commands from the PC to query object and
>> data states and values.
>>
>
> Hmm, I would expect this to be a function of the debugger in the IDE.
> I guess that is why I am having difficulty finding it. :-)
>
> It does appear that, at least with 6.11, I can open and query the
> state of an attribute in an object in the object browser.
>
>
>>> I would
>>> also like to be able to set a breakpoint in the execution. Is this
>>> possible?
>>>
>> You want the code to stop running when it reaches a specific
>> instruction?
>>
>
> Absolutely.
>
>
>> You could wait for input / state change on a port
>> (serial or otherwise)
>>
>
> <sigh> Yes I can but that strikes me as a bit of a kludge. I was
> hoping for something a bit more, uh, integrated. But, yeah, I can tie
> a switch to an I/O port and wait on it.
>
> General question: over the course of my professional career I have
> been spoiled by having good source and object code debugging tools.
> Are these not common in the microcontroller world? Come to think of
> it, I certainly haven't run across any.
>
>
Brian
If you are needing to watch objects dynamically you might want to take a
look at the Object Watcher tool which is in the Files Section of this
group. With this read only tool you can look at all objects and their
properties as well as non object variables.
I wrote it a few years back when Ver 6 was still in Beta and before any
of the current debugging features were working. It is useful for some
debugging and for generally seeing what is going on inside the objects.
All values can be displayed in Decimal, Hex and Binary.
Ian
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment