DEBUG Console Equivalent
CumQuaT
Posts: 156
Hello all,
Very simple question. I have alot of experience with Basic Stamp but none with Propeller. Is there an equivalent to the DEBUG window in the spin language? Something that I can monitor the contents of variables, etc?
I'd just like to be able to keep track of what's being stored in my variables while the program is running (and while the prop is hooked up to my pc)
Thanks in advance guys.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
Very simple question. I have alot of experience with Basic Stamp but none with Propeller. Is there an equivalent to the DEBUG window in the spin language? Something that I can monitor the contents of variables, etc?
I'd just like to be able to keep track of what's being stored in my variables while the program is running (and while the prop is hooked up to my pc)
Thanks in advance guys.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
Comments
On the Prop side, you can use any of the serial I/O drivers like Simple_Serial or FullDuplexSerial using the same I/O pins used for downloading from the Propeller Tool. The BS2 Compatibility Library includes its own version of Simple_Serial designed to be used for debugging like in Stamp Basic. Have a look at that as well.
I also use either a TV or VGA display for debugging. The TV.spin and TV_Text.spin combination works well for this purpose and doesn't take too much memory. I've even used both a TV and VGA display for some debugging with the program itself using the VGA display and a little video monitor on the side has the debugging information.
Lastly, have a look at hanno's ViewPort, now sold by Parallax. It uses a special high speed serial driver on the Prop and a really nice debugger on the PC side. You can monitor all sorts of variables in your program as well as I/O pins. There's a conventional debugger as well, but I haven't had a chance to look at it yet.
Post Edited (Mike Green) : 2/22/2009 5:14:39 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
Mike told you about hanno's ViewPort. ViewPort has a 30 day free trial. So check it out. See the following thread for the most current info - http://forums.parallax.com/showthread.php?p=785635
The free trial is available on the Parallax ViewPort page, which is here - http://www.parallax.com/Store/Microcontrollers/PropellerTools/tabid/143/ProductID/546/List/1/Default.aspx?SortField=ProductName,ProductName
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Whit+
"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
Post Edited (Whit) : 2/22/2009 1:30:37 PM GMT
In addition to all the fancy things (fuzzy logic engine, openCV powered Computer Vision, frame grabbing, high speed logic analyzer, spectrum analyzer, customizable instrumentation) ViewPort also includes a simple "terminal" object that let's you get started with "terminal-style" debugging- outputting text and reading input entered.
You can start easy and go from there. It's a Parallax product, complete with 65 pages of documentation, ~15 documented tutorials, several video demos, and a growing community.
More info here
Hanno