Skip to content

How can I "read" configuration settings in defalult.json at runtime? #812

Closed

Description

@itg-assistant

Alex Prinias asked 2017-05-04 17:39:07 UTC

Hi guys,

As the title goes, how can I read for example the "debug" setting from the default.json file so that I execute different code depending on whether the flag is true or false? I want to use this as a better approach for the "#if DEBUG ... #endif" instruction in code which relates to the Release/Debug compiling mode.

Best,
Alex

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2017-05-04 17:47:28 UTC

    Hi Alex,

    it´s available as Application.Configuration.Debug

    Best regards
    Frank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions