Shop OBEX P1 Docs P2 Docs Learn Events
Does SX/B allow debuging at the source level ? — Parallax Forums

Does SX/B allow debuging at the source level ?

inakiinaki Posts: 262
edited 2005-06-01 04:31 in General Discussion
I am afraid it does not, but anyway: does SX/B allow source level debugging ?
I mean, need I·to debug always at the ASM level ?

·

Comments

  • PJMontyPJMonty Posts: 983
    edited 2005-05-31 20:02
    Inaki,

    Yes, there is no way to debug at the SX/B source level. You have to debug at the assembly level.
      Thanks, PeterM
  • NateNate Posts: 154
    edited 2005-06-01 02:00
    I have always found that somewhat amusing.....SX/B is designed to help people learn to write programs for the SX.· But to debug a SX/B program you need to understand SASM, and the SASM output from the SX/B compiler is about as confusing as you can get.

    That is why I always have and probably will continue to write in SASM - At least the mistakes are somewhat understandable, as I made them myself.

    Nate
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-06-01 02:57
    Well, we've tested SX/B pretty carefully, so any debugging you do with SX/B is your program logic, and not code produced by the compiler from your high-level commands.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • BeanBean Posts: 8,129
    edited 2005-06-01 03:00
    I'm not sure how you would go about "debugging" an SX/B program. The SX does not "run" an SX/B program, only the SASM code that is generated by the SX/B program. I guess you could hide all the SASM instructions, but that would defeat the whole purpose.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95 http://www.parallax.com/detail.asp?product_id=30012


    Product web site: www.sxvm.com

    "It's not getting what you want, it's wanting what you've got."
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-06-01 04:31
    You can somewhat mimic the execution of a Basic program through following the commented code for the basic, breakpoint between each command then walk or run to the next. Treat the assembly inside as a black box, only concern yourself with the state of the SX at these times. The SX/B model has specific constructs such as __Param1 etc, by noting what registers these are in you can begin to get a metal picture of the "basic processor". I know its not what you are looking for.
Sign In or Register to comment.