Hi Eros.
Works fine - thank you very much.
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
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Hi Eros.
Works fine - thank you very much.
Good.
I feel I can make nice things with this module because quite a lot of things seems possible.
In any case, tracing a dialog message pump (the loop handling dialog messages) can be difficult because messages comes to high speed and do not wait for the programmer to trace line by line. For this reason the best is to place some break points in the areas that need to be inspected.
Once tested better, I will work to improve user interaction adding a statubar, a toolbar and a better and more user friendly way to interact with variable inspection. One thing I want is to show traced source code script in its original way with all comments and indentations.
Ciao and thanks a lot for testing.
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Thanks,
it is getting better and better with each version!
I like I can run the script at full steam using F5 and then using F8 fall back to step mode.
Good!,
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Hi again.
I've updated attached file in first post of this thread.
Traced script is now shown with its original comments and indentations allowing a more precise and better understanding of what it's going on in tracing steps.
Hope you like it.
Ciao
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
No I do not like it at all ;D
Very nice!,
I also realised I can split the view to 4 viewports
Thanks,
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Bookmarks