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

"Out of scope" variables on debug

Hi all,

I'm having a very troubling problem when debugging with the new version of µvision (4.11) that I didn't have with the last I was on (it was 4.03 I think). When I debug code on various platforms (working on an STM32F103 and an NXPLPC1768, both CM3), I have a lot of variables that appears "Out of scope" in the watch window.

I'd like to add that I'm at optimization level 0, I tried default but it optimized more and I had even less variables visible, and that this problem did NOT happened with the previous version of the software.

Thank you in advance for you answers.

Parents
  • Obviously I forgot a certain amount of details, I'm taking about debugging within a simple method.

    For instance the following method:

    int testMethod(int a)
    { if (a > 0) return 1; else return 0;
    }

    Well if i put a breakpoint within this, at any position, I would sometimes see 'a', but most times, the debbugger will say it's out of scope.

Reply
  • Obviously I forgot a certain amount of details, I'm taking about debugging within a simple method.

    For instance the following method:

    int testMethod(int a)
    { if (a > 0) return 1; else return 0;
    }

    Well if i put a breakpoint within this, at any position, I would sometimes see 'a', but most times, the debbugger will say it's out of scope.

Children