[SOLVED] Change Expression value in script

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Change Expression value in script

    Hello,

    I want to change a global variable automatically after reset of the device.
    It is simple possible with the GUI (Watch windows -> Change value -> Enter). But how can I edit a expression in the jdebug script?
    Can anyone help me?
  • Hello,

    Thank you for your inquiry.
    If I understand correctly you are looking to populate the watch window automatically on each debug start, correct?
    How do you know beforehand what the expression name will be?
    The jdebug script is static.

    In any case what you could do is:
    Window.Clear ("Watched Data 1");
    Window.Add ("Watched Data 1", "test");
    etc.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.