STM32: Debugger doesn't jump to code location via "Step into"

Comments

4 comments

  • Avatar
    Jon Elliott

    Check that the Code > Code Generation > Debugging Level and Code > Build > Include Debug Information project properties are not set to a different value on the files without debug information.

    0
    Comment actions Permalink
  • Avatar
    Johannes Hofmann

    No, unfortunately all have the same properties. Debug Level 2 and Optimizatzion Level is debug for these files.
    In another community thread I asked, if I can reset the properties for tagged files with "modified properties", but couldn't figure out what the user meant with his response.

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    Which of the source files shown in your image don't have debug information?

    0
    Comment actions Permalink
  • Avatar
    Johannes Hofmann

    Hi Jon,
    The first function is in a file called control.cpp inside the misc folder. In this function there are other calls of functions from Pushbutton.cpp and LED.cpp.

    For checking, I set up a completely new project with identical folder structure and only matched the following properties from the not working project: Debug Level, Code Optimization, Include Directories and the c Language level
    And with this, the debugger behaviour is as expected.

    Update:
    I finally found the issue. Somehow I had the debugging level set to NONE in the "Thumb Debug" accidentally, and only changed the "Common" setting for the debug information.
    Also I was wondering, if I change for example the debug level in the private debug configuration, it doesn't inherit this setting into the Thumb Debug. So which configuration is the source for each public configuration's inheritance?

    Unfortunately, I can't upload files here, because I would like to upload both project files, so you could check the differences.

    0
    Comment actions Permalink

Please sign in to leave a comment.