⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)

How to automatically add breakpoints to all methods in a cpp file or whole project?

  • I have downloaded a open source Qt project & I want to understand it by debugging. I would like to add break points to all methods present in a file or if possible to all files in the project.

    Is there any shortcut command/setting by which I can add break points in one go instead of manually clicking in every method?

  • @Tusharh
    Hi and welcome to devnet

    A featrure as you request may be latest with larger projects too much for the debugger to handle.

    The closest to get such a behaviour is to use F11 and Shift+F11. F11 will enter every possible method and Shift+F11 will help you to run the remainder of the method. IMO sufficient enough to get a really detailed anaylsis of source code.