Shop OBEX P1 Docs P2 Docs Learn Events
Careful with Spin2 debug — Parallax Forums

Careful with Spin2 debug

Guess I'm off today, just spent several minutes racking my brain to figure out why I was suddenly getting this "Debug Communications Lost" message after adding a new debug line...

Figured out it was because did:
debug(otype)
instead of:
debug(udec(otype))

I'm not sure what that first one does, but it's nothing good...

Comments

  • JonnyMacJonnyMac Posts: 8,894

    I have noticed that, too -- odd errors if there is type definition typo.

  • IIRC the first one sends a raw byte over the serial link. May mess up the step debugger stuff.

  • cgraceycgracey Posts: 14,112

    @Wuerfel_21 said:
    IIRC the first one sends a raw byte over the serial link. May mess up the step debugger stuff.

    Right, if it gets a 0..7 byte, it thinks a breakpoint has occured.

    This gets me, sometimes, too.

Sign In or Register to comment.