Hi,
Thanks for the good example.
I'll try to answer best I can. Question: What is the data type of your array?
The debugger already allows you to do all of what you have described except that in the current release only ascii data is supported. This might be a limiting problem for you,
we do plan a future release that has better capability and the ability to know the length and data types of arduino variables. Quote:(3) At completion, I set a Flag (in the array) and wait for a (serial.print activity) to send the bytes to my C# Visualizer object.
Yes you can do this in the current release. Use the
Breakpoint Condition property to test if the Flag is set
Quote:(4) (somehow?) An inserted statement would eventually test my Array-Flag. If True more inserted statements would tranfer the array back to the Debugger.
See above, using the
Breakpoint Condition property allows a breakpoint to only executed based upon the condition.
Quote:a (C#/VB) VM-Visualizer event fires with array data ready. The Visualizer updates the Screen after suitable handling.
Yes this is how the Visualizations work. If you want to see a Visualization working then you can switch on project property "Report Digital" or "Report Analog"
You will see in the C# examples that the Visualization is notified when the debug starts and also when new values arrive from an Arduino breakpoint (serial).
When C#/Vb is notified of new data a list of KeyValue pairs are provided in the message arguments. The key/value pairs are a list of variables/expression names and values. The values are strings so you would need to convert them back to your array format.
You will see various examples of responding on the OnExpressionValuesChanged event in the C# sources provided with Visual Micro.
There are more graphical examples if you click the BIG button on the Serial Monitor during a debug session.
You might also find it useful to know that you can use the standard Arduino serial conversion syntax with your expressions and variables (When Hit) watch.
myVar,HEX
myVar,BIN
etc..