Hi all.
I've updated attached files in first post of this thread.
In order to test, be sure to have latest thinBasic 1.6.0.4 installed.
Extract attached files and:
- place thinCore.dll into \thinBasic\ directory
- place thinBasic_Trace.dll into \thinBasic\Lib\ directory
- place thinBasic_TRACE_Editor.dll into \thinBasic\Lib\ directory
To trace a source code just add somewhere the following line:
[code=thinbasic]USES "Trace"[/code]
I'm very excited to list here new features:
- new commands:
F8 (Execute next line)
CTRL+F2 (set or remove a break point to a line)
F5 (Execute all or till next break point)- new user interface allows resizable areas
- variable inspection (2 text fields on the right side).
It is not so advanced in terms of user interface (I will improve a lot) but will let you specify on the fly a list of variables to be inspected. Just type variable names separated by any space, comma, CRLF. In next line execution they will be searched and evaluated. The whole thing seems working fine. I will make some additional tests and when stable, I will improve user interface, user interaction and more options like multiple level stack variables with the same name, ...
Current bif limitations: variable inspection works only with numeric and string variables. In case of arrays, only the first element is returned, if a variable is present both as global and local so a function, value returned is the innest staking level (the one under the tracing cursor)- module command TRACE_Print(StringToPrint [, WriteToBottomTrueFalse])
will let you print text into the bottom text box of the tracing window. I will improve this behave also adding new commands to clear, append text in that area- break point will let you trace also more complex scripts like UI or TBGL scripts. Just add a break point in critical lines and than press F5 to run execution. F5 will not stop script execution unless a break point is reached.
- and of course interaction with tracing window is possible even if script is executing. This is great for UI and TBGL scripts
Hope you like it.
Please let me know any impression.
Ciao
Eros
Bookmarks