Menu

#1466 New stack trace dialog

Undefined
open
nobody
debugger (23)
Patch
2024-05-01
2024-03-17
bluehazzard
No

Hi guys, its been a long time ;)

i have done some work on the stack trace dialog:
* switched from list ctrl to data view ctrl
* add control to set stack trace size
* add search field to search in stack trace
(see attached screenshot)

currently tested only on windows, but working on linux right now.
Code is found here
https://github.com/bluehazzard/codeblocks_sf/tree/test/debugger/newBacktrace/dataview/1
and attached as patch

i would appreciate if you could test, make some comments, make some code review.

Thank you!

1 Attachments

Discussion

  • bluehazzard

    bluehazzard - 2024-03-17

    here is the code

     
  • pecan

    pecan - 2024-03-18

    It looks like the Line column is oriented to the right in its column rather than to its left.
    The Line number is all the way out to the right and will not move to the left when I drag the dolumn '|' marker left.
    If I drag the right window border to the left to try to get the Line number column to the left, the Line number column just disappears.

    Otherwize, looks good.
    Thanks

     

    Last edit: pecan 2024-03-18
  • bluehazzard

    bluehazzard - 2024-03-26

    Thank you for your feedback. I will look into it.
    I have some problems on linux with the data view, i have to resolve.
    Will come back with a new patch as soon as possible.

     
  • kolAflash

    kolAflash - 2024-05-01

    Can you have a look at what happens for very long function names?

    I'm working on LibreOffice and it has very long entries in the function column like:
    SfxDispatchController_Impl::dispatch(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<css::frame::XDispatchResultListener> const&) (this=0x55ab39b7fdf0, aURL=... aArgs=... rListener=...)

    In the old dialog long function names cause the Function column to become very wide. So you can't see the File and Line columns without scrolling to the right. And when you shrink the Function column width, it gets reset once you continue debugging.
    (tested on Debian-12 with codeblocks-20.03+svn13046 by Debian)

    I'd be happy if you only see long function names when you manually widen the Function column or when a manually adjusted column width somehow gets preserved. So by default the width of all columns is adjusted in a way with which you can see all columns without vertical scrolling.
    (surely you should still be able to see the whole function name when you manually widen the column)

     

    Also there should also be space left at the right side of the last column (currently the Line column) and below the last line. Because, at least on some platforms, the vertical and horizontal scroll bars are hidden by default. And on mouse over they are faded in, but overlaying the right and the lower part of the dialog area.
    (see screenshot where the scrollbar is just in the process of fading in)

    P.S.
    Just found out, that you can completly disable the scrollbar autohide feature on Debian-12 by setting the environment variable GTK_OVERLAY_SCROLLING=0.
    (I don't like scrollbar autohide anyway)

     

    Last edit: kolAflash 2024-05-01

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.