Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Experimental TRACE module

  1. #11
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: Experimental TRACE module

    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

  2. #12
    Junior Member
    Join Date
    Apr 2008
    Posts
    19
    Rep Power
    18

    Re: Experimental TRACE module

    Hi Eros.

    Works fine - thank you very much.
    Attached Images Attached Images

  3. #13
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: Experimental TRACE module

    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

  4. #14
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736

    Re: Experimental TRACE module

    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

  5. #15
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: Experimental TRACE module

    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

  6. #16
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736

    Re: Experimental TRACE module

    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

Page 2 of 2 FirstFirst 12

Similar Threads

  1. New experimental module: GDIP
    By ErosOlmi in forum thinBasic vaporware
    Replies: 2
    Last Post: 06-12-2007, 08:06

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •