Main Menu

Capture Tab data

Started by John Z, July 07, 2021, 04:31:58 PM

Previous topic - Next topic

John Z

Canceled-

Here is a new add-in.  Hopefully a useful one.
The purpose is to be able to easily and quickly save the data from a selected IDE TAB such as 'Project', 'Find in files', 'Output', or 'Debug' in a text file under the current project directory. Text filename will always be output_yyyymmdd_hhmmss. 

Example: output_20210707_085753.txt

How to use:
Load and activate the Capture.dll utility

SHA256: FE1137C6A9E995AAB1D486194029E91BC0C4A055BA5E313DDBD78692AD0CAB03
SHA256: B9EAB5D5F77F69CFD40AE90FCB3ECDF3C525FABC9C612898C4325C0B60A27848
SHA256: D9D43BE786AE65A8B38A5169E2A74438A684E62D4AD487BDE5A1051236502A3F


Generate output from any tab mentioned above, or any tab under a Debug run (except the 'Memory' map).

To save the tab data:
CLICK once anywhere in the projects tab window that is to be saved
then invoke the add-in; click File, Save Tab data - that's it

The file will be in the project directory.

John Z

Completion message is provided in the 'output' window.

Updated 7/12/2021 version 1.2.0 (works with listviews also)
Updated 03/06/2023 version 1.2.1 (compiled under Pelles v11)
Updated 03/09/2023 version 1.2.2 (improved output directory detection)
Updated 03/12/2023 removed

Grincheux

I have downloaded it and using it immediately because a bug that I can catch. I will use the addin for the "Debug Tab". Tha ;D nk You John.

Grincheux

Debug is not accessible, when debugging the Source menu does not exit. You have to put the add-in in the "Project" menu.

John Z

#3
Thanks, I didn't have anything that output to the debug tab.

After thinking a bit I decided it belongs on the FILE Menu.

New version is available on the initial post above.

Appreciate your help!

John Z

Updated 7/8/2021

John Z

Updated initial post with revised dll.

John z

Grincheux

For me it is much easy. I test and give you my answer. Thank You JohnZ

Grincheux

Fine!


Building Display.res.
Building Display.exe.
POLINK: warning: Realigned section '.idata$5' in object 'SQLite3.lib(sqlite3.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$4' in object 'SQLite3.lib(sqlite3.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$2' in object 'libgfl.lib(libgfl340.dll)' (from 4 to 1 byte(s)).
POLINK: warning: Realigned section '.idata$2' in object 'libgfle.lib(libgfle340.dll)' (from 4 to 1 byte(s)).
Writing debug information
POLINK: warning: Unrecognized version (589844) of debug symbols in object 'libgfl.lib(libgfl340.dll)'; ignored.
POLINK: warning: Unrecognized version (589844) of debug symbols in object 'libgfl.lib(libgfl340.dll)'; ignored.
POLINK: warning: Unrecognized version (589845) of debug symbols in object 'libgfle.lib(libgfle340.dll)'; ignored.
POLINK: warning: Unrecognized version (589845) of debug symbols in object 'libgfle.lib(libgfle340.dll)'; ignored.
Compacting debug information
Done.





Grincheux

Does not work with debug tabs.
Sorry!

John Z

#8
I see what you are showing - but what you are showing is not the Debug Tab I'm referring to.  See attached.

I'll need to set up something to debug to see if something can be done.  I've never actually used the debug feature to solve anything ....

The most I've gotten into the Debug Tab is the word "Done" and the add-in saved it to a file ...  :) so I'll look more at actual debugging.

John Z
removed attachment to free space

TimoVJL

Quote from: John Z on July 08, 2021, 01:26:39 PM
I'll look more at actual debugging.

John Z
not for assembler code, but for symbols.
Add-Ins for debugger
May the source be with you

John Z

#10
So what you are looking for is a way to save the tabular data under the tabs generated when actually running the Debugger.  I understand.  Capture.dll is not capable of that, it will need a different approach.  Since it is tabular data CSV should be usable. I think something can be worked out for some of those tab Tables except for the Memory one.  Might be fairly difficult though, I also see some entries are using a treeview too. I'm not sure how to handle that right now.


John Z
removed attachment to free upload space.


TimoVJL

As those tabs are Listview, here is an old ListViewUtils code.
May the source be with you

John Z

Quote from: TimoVJL on July 08, 2021, 02:24:07 PM
As those tabs are Listview, here is an old ListViewUtils code.

Thanks Timo, I downloaded and will look at it.
In my vcardz_i utility on SourceForge I used a multicolumn listview too, and wrote code to export the table to CSV as well as ODF spreadsheet.  HOWEVER that listview did not contain trees  :( so it is simpler I'm sure.

Thanks,
John Z

John Z

#14
Quote from: Grincheux on July 08, 2021, 01:14:36 PM
Does not work with debug tabs.
Sorry!

Sir Grincheux, Since you are the current 'customer' for this  :) which column separator is preferred TAB or COMMA ?  In a plain text editor/viewer the columns are not always going to align because the data stored in the columns are variable lengths (see attached).  So I'm guessing the output text file will be best opened in something like Excel or LibreOffice Calc. 

I could scan each column for the longest datum and adjust others but I'm not sure that is worth the resources. I'll think about it though.

John Z
removed attachment to free upload space