DebugMethod CommandLine does not expand Macros

Sysprogs forums Forums VisualGDB DebugMethod CommandLine does not expand Macros

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36124
    Timo
    Participant

    Hi,

    Im trying to use Visual studio wide macros (e.g $(SolutionDir)) in the Debug settings -> Advanced Settings -> Command line text field.

    However, it appears that in this specific text field, the macros are not expanded.

    I noticed that the predefined macros are written in a different way here ($$SYS:MCU_ID$$, with two dollar signs).

    Is there a way to use the regular visual studio macros in this field? Maybe with a different syntax?

    Mfg,

    Timo

    #36139
    support
    Keymaster

    Hi,

    This one is tricky. VisualGDB projects are designed to be debuggable outside Visual Studio as well (e.g. to run tests or record traces), so the debug engine does not receive the regular Visual Studio variables.

    VisualGDB-level variables (e.g. $(ProjectDir)) will work and you can also pass arbitrary variables via environment. The $$SYS:MCU_ID$$ syntax is used for BSP-level variables (that are not specific to a particular project) and are used for tasks like translating the same BSP definition into both CMake rules and MSBuild rules.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.