How to include few files only in debug configuration

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

    • How to include few files only in debug configuration


      In my emProject file, how can I include few files only when in debug configuration?

      e.g if I have file1.c, file2.c and file3.c then this is what I want:

      Release configuration -> build file1.c and file2.c
      Debug configuration -> build file1.c, file2.c and file3.c

      How can I achieve that?

    • Hello Ankur,

      Thank you for your inquiry.
      You can right click individual files and select "exclude from build".
      So if you have the "Debug" configuration active this file will now be excluded from Debug builds.

      Best regards,
      Please read the forum rules before posting: Forum Rules

      Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
      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:

      Or you can contact us via e-mail.