Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    C++ Debugging Setup

    Cinema 4D SDK
    2
    6
    997
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      Yakuza
      last edited by Yakuza

      Hi.

      I compiled the sdk on Windows and my plugin for R21 in standard configuration according to the documentation. Now I'd like to be able to press "Debug" in VC++ and have it compile and run C4D.exe just like before R20. At the moment the sdk/plugins folder is not the plugins folder so C4D won't load the plugin.
      How do I have to set it up so I can compile in the plugins folder? I'm a bit intimidated by the new dependencies, frameworks, solutions, projectfiles, projectdefinitions, configurations and stuff. I hope it is just setting the plugin path in CInema.
      Additionally, where in VC++ do I have to link the C4D.exe? In the "Debugging" section of the project file?

      Thanks a lot.

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by

        Hello,
        I've marked your thread as a question, be sure to change it to solved (information here)

        About your question, we have the information you asked on this manual.

        But there's always room to improve so let us know if something is still not clear.

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

        Y 1 Reply Last reply Reply Quote 0
        • Y
          Yakuza @Manuel
          last edited by

          @m_magalhaes said in C++ Debugging Setup:

          But there's always room to improve so let us know if something is still not clear.

          Thanks. Your link states: "The plugin location can be set with the g_additionalModulePath command line argument."
          Where and how do I use it exactly? Using it in an alias of the C4D.exe lets me start Cinema and it finds the plugin but VC++ doesn't accept aliases and converts the path to the target .exe. Forcing the link leads to an error. When using g_additionalModulePath in VC++ directly it complains about the syntax.

          1 Reply Last reply Reply Quote 0
          • ManuelM
            Manuel
            last edited by Manuel

            hi,

            in Visual Studio, on the properties, below the line Command you have Command Arguments
            so in
            command : D:\my\path\to\cinema4D\Cinema 4D.exe
            Command Arguments : -g_alloc=debug -g_additionalModulePath ="D:\SDK\R21\MyProject\Plugins"

            Cheers,
            Manuel

            MAXON SDK Specialist

            MAXON Registered Developer

            1 Reply Last reply Reply Quote 1
            • Y
              Yakuza
              last edited by

              Thanks again. This works now but one last thing. It now triggers a stop on startup. Can I safely uncheck stopping for this kind of exception?

              1 Reply Last reply Reply Quote 0
              • ManuelM
                Manuel
                last edited by

                hello,

                We need to ask if you are compiling the SDK, your own project, etc.
                Different question, you should open a different thread 🙂
                It will help other people to find the thread.

                Cheers,
                Manuel

                MAXON SDK Specialist

                MAXON Registered Developer

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post