Sunday, March 9, 2008

Re: [oopic] debugging

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 Lloyd Granite Bay Montessori
brian AT gbmontessori DOT com 9330 Sierra College Blvd.
+1.916.367.2131 (voice) Roseville, CA 95661, USA

http://www.gbmontessori.com

I fly because it releases my mind from the tyranny of petty things . . .
— Antoine de Saint-Exupéry

PGP key ID: 12095C52A32A1B6C
PGP key fingerprint: 3B1D BA11 4913 3254 B6E0 CC09 1209 5C52 A32A 1B6C


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:

http://docs.yahoo.com/info/terms/

No comments:

Post a Comment