Suggestions for Live Variables

Sysprogs forums Forums VisualGDB Suggestions for Live Variables

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25347
    ExtSol
    Participant

    Dear Support,

    In debug mode, when i set breakpoint in Live Variables window for variable equal to ‘1’, the debugging stop only once.

    • This topic was modified 4 years, 9 months ago by support.
    • This topic was modified 4 years, 9 months ago by support.
    #25345
    ExtSol
    Participant

    Dear Support,

    Feature Request: can you make show enum value names at the marked position in Live Variables window?

    Source: https://pastebin.com/qQiXGs45

     

    Attachments:
    You must be logged in to view attached files.
    #25341
    ExtSol
    Participant

    Dear Support,

    Feature Request: can you make show strings at the marked position in Live Variables window?

    Source: https://pastebin.com/qijLaMgP

     

    • This reply was modified 4 years, 9 months ago by ExtSol.
    • This reply was modified 4 years, 9 months ago by ExtSol.
    • This reply was modified 4 years, 9 months ago by support.
    • This reply was modified 4 years, 9 months ago by support.
    Attachments:
    You must be logged in to view attached files.
    #25362
    support
    Keymaster

    Hi,

    Thank you for your suggestions on making Live Variables better, however it looks like this mostly duplicates existing features. Please see the explanation below.

    The live variables work by continuously reading the target’s memory without interrupting the program and are intended for monitoring slowly changing parameters that could be easily written by the software to fixed locations in memory (e.g. counters for certain internal events, object counters, etc). Together with the plotting functionality, this allows monitoring the state of real-time systems without stopping them on a breakpoint (that could disrupt functionality if the system is expected to handle external requests).

    In order to keep a track of more complex/dynamically changing structures, such as strings, please consider using semihosting. Simply dump the state of those variables when needed via the printf() function and VisualGDB will display it in the semihosting view. You can also use the live memory mode in the Advanced Memory Window provided by VisualGDB – it uses the same mechanism as Live Variables and allows reading the memory contents of large objects (e.g. string buffers) without stopping the program.

    The Live Variable breakpoints are intended to catch slowly changing critical conditions (e.g. some object counter growing beyond the usual value) and are intended to stop the program once the condition is hit, so that you can examine its state and then continue. As the monitored values would typically not change while the program is stopped in the debugger, the live variable breakpoints automatically disengage after the initial hit in order to avoid an infinite loop.

     

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.