Debugging in Flowstone
Posted: Sat Feb 17, 2018 4:59 am
When you work with FS, you probably spend some time with debugging your schematic. Most people do not really enjoy this activity so they would rather get it over with quickly. Surely there are different ways to approach this, and some are more efficient than others. Therefore I would like to start a discussion on this topic. I certainly would like to spend less time on debugging and more time on creative stuff.
So how do I do it? It depends somewhat on the domain (poly, stream, green, ruby). One general rule is to try avoid introducing bugs in the first place.
Or rather, spot them and fix them as early as possible:
- start with a prototype, not the final optimized product
- break it down into small modules and test each module separately
- tidy up your spaghetti connections
Okay so let's assume I have been disciplined and have adhered to my own advice above (which I more often than not don't), but the schematic does not work as desired. What next?
- introduce probes (readouts, analyzer, scope) and work my way down the signal path
- if I use code or assembly, I add a streamout test variable and monitor some relevant points
- isolate the faulty part of my schematic and analyze that part separately so I can mess around without breaking my schematic
So I hope this gets this thread started. I am curious how other people go about deebugging in FS.
So how do I do it? It depends somewhat on the domain (poly, stream, green, ruby). One general rule is to try avoid introducing bugs in the first place.
- start with a prototype, not the final optimized product
- break it down into small modules and test each module separately
- tidy up your spaghetti connections
Okay so let's assume I have been disciplined and have adhered to my own advice above (which I more often than not don't), but the schematic does not work as desired. What next?
- introduce probes (readouts, analyzer, scope) and work my way down the signal path
- if I use code or assembly, I add a streamout test variable and monitor some relevant points
- isolate the faulty part of my schematic and analyze that part separately so I can mess around without breaking my schematic
So I hope this gets this thread started. I am curious how other people go about deebugging in FS.