CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Jun 2015
    Posts
    21

    Is there a way to remove or reduce randomness from debugging?

    Assuming there are expressions in the code in the log, then searching for the log expression can lead to lines or lines of source code

    One recipe can be this

    1- Find the first error message in the log.
    2- Find the corresponding line in the code.
    3- Find incorrect variable / incorrect function with watch / backtrace.

    Is there a complete and detailed algorithm, or *nstruction or standard, especially for gdb and C ++
    For example
    Consider a large application, with C ++ and Linux, if you go wrong and find a variable with a bad value, how do you determine where it got value. With grep in the source or code execution and watch ? With what pattern of debug do you track the bad value variable to the first variable that caused the error probably related to a table ?
    Last edited by alwaystudent; August 27th, 2019 at 10:16 PM.

Tags for this Thread

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured