This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Saving the content of the watch windows between two debug sessions.

Hello,

Is there a way to save the content of the watch windows between two debug sessions or when a debug session is stopped and restarted again?

For the moment, when I stop a debug session, I have to reselect and add all my variables again which I was watching previously to one of the watch windows.

Rgds,

Geert

  • Open the Project Settings and click on the Debug tab. There are several check boxes there which save/restore settings. Make sure the one for the watch window is checked.

    Note that you cannot restore watchpoints for variables that are not in scope. ie. watchpoints for global variables can be restored but watchpoints for the local variables of a function deep within your program cannot.

    You can also create an include file for the debugger that adds variables to the watch window. For example:

    WATCH.INI

    ws var1
    ws var2
    ws var3
    

    You can define a toolbox button to load WATCH.INI.

    define button "Load WATCH.INI" , "include \"watch.ini\""
    

    Then, when you click on Load WATCH.INI the file loads and the watchpoints are added to the watch window.

    Jon