Is there a way to change the directories "VisualGDB" and "CodeDB"?

Sysprogs forums Forums VisualGDB Is there a way to change the directories "VisualGDB" and "CodeDB"?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #13098
    codetronik
    Participant

    HELLO,

    I want to move these two directories to another directory.

    This is not necessary when sending my source code to others, but it is often included because of my bother.

    Is there a way?

     

    #13100
    support
    Keymaster

    Hi,

    You can change the location of the CodeDB folder as follows:

    Tools->Options->Text Editor->C/C++ (VisualGDB)->Indexing->Code Database Folder Name

    The output directory (e.g. VisualGDB\Debug) can be changed via regular Visual Studio project properties (first page) for MSBuild projects and via VisualGDB Project Properties for other project types.

    #13110
    codetronik
    Participant

    This screen is my project directory.

    Is this the configuration of the VisualGDB directory you mentioned?

    The VisualGDB/build/CodeDB directory is still created under the project directory.

    I do not want to be created under the project directory.

    Is there any other way?

    • This reply was modified 7 years ago by codetronik.
    Attachments:
    You must be logged in to view attached files.
    #13114
    support
    Keymaster

    Hi,

    Please try creating a new MSBuild-based project, keeping the default value of Code Database Folder Name and setting the “Output Directory” field to the following:

    $(SolutionDir)..\test\$(Platform)$(Configuration)

    Then reopen the solution. The CodeDB directory should be created under the ..\test directory. If this doesn’t help, please let us know where exactly it is created. If this helps, please compare this setting to the setting in your project and adjust your project accordingly.

    #13119
    codetronik
    Participant

    i attached sample project file.

    i want the following directories.

    project ——– src  — testapp
    ……………………..|
    ……………………..| -build — debug
    ……………………..|- release
    1. i don’t want “project-src-testapp-VisualGDB” directory.
    Can I modify this directory location?

    2. I changed project properties
    Output Directory : $(SolutionDir)..\build\$(Platform)\$(Configuration)\
    Intermediate Directory : $(SolutionDir)..\build\$(Platform)\$(Configuration)\obj\$(ProjectName)\

    but error occurs when i build testapp project ::
    Warning : cannot perform inline build: No remote path corresponds to D:\testproject\src\..\build\VisualGDB\Debug\obj\testapp\testapp.msbuild-mak. Please check your source file transfer settings and path mapping settings.

    there is no errors, If i doesn’t change the setting.

    I am very grateful if you can modify this project as I want.

    • This reply was modified 7 years ago by codetronik.
    • This reply was modified 7 years ago by codetronik.
    • This reply was modified 7 years ago by codetronik.
    • This reply was modified 7 years ago by codetronik.
    • This reply was modified 7 years ago by codetronik.
    Attachments:
    You must be logged in to view attached files.
    #13126
    support
    Keymaster

    Hi,

    Sorry, for remotely build MSBuild projects the output directory must be located inside the directory of the project so that VisualGDB can map the file paths between the Linux and Windows machines.

    You can still move the CodeDB directory outside the project directory by adding the following lines to your .vcxproj file:

    <PropertyGroup>
        <SysprogsCodeDBDirectoryBase>$(SolutionDir)..\path-to-directory</SysprogsCodeDBDirectoryBase>
    </PropertyGroup>
    #13127
    codetronik
    Participant

    Do I have to modify the CodeDB directory in all projects .vcxproj?

     

    Can not I fix it in the way you have already told me?

    Tools->Options->Text Editor->C/C++ (VisualGDB)->Indexing->Code Database Folder Name

    #13129
    codetronik
    Participant

    If I set this, my property disappears. (screen shot)

    This happens when I set it as below.

    <?xml version=”1.0″ encoding=”utf-8″?>
    <Project DefaultTargets=”Build” ToolsVersion=”14.0″ xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″&gt;
    <PropertyGroup>
    <SysprogsCodeDBDirectoryBase>$(SolutionDir)..\build</SysprogsCodeDBDirectoryBase>
    </PropertyGroup>

    So I changed codedb position and it worked well,
    After a few minutes it was automatically placed as above, and my settings disappeared.

    Is there a workaround?

    • This reply was modified 7 years ago by codetronik.
    • This reply was modified 7 years ago by codetronik.
    • This reply was modified 7 years ago by codetronik.
    • This reply was modified 7 years ago by codetronik.
    Attachments:
    You must be logged in to view attached files.
    #13135
    codetronik
    Participant

    I’m sorry, maybe I made a mistake.
    Now there is no problem.
    If there is a problem, I will rewrite it.
    Thank you for your help.

    #13137
    support
    Keymaster

    Hi,

    No problem. In case anyone else reads this topic, the global setting defines the subdirectory name for the IntelliSense Code Database, the base directory is controlled by the SysprogsCodeDBDirectoryBase variable. I.e. the full path to the directory is $(SysprogsCodeDBDirectoryBase)\<Subdirectory name in global settings>.

    Unless your project explicitly defines SysprogsCodeDBDirectoryBase, it defaults to $(OutDir).

    #31202
    embedMaster
    Participant

    Good day.

    Now I am trying to do the same way, but it doesn’t work. What I am doing wrong? Or maybe that feature not available now?

    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #31204
    embedMaster
    Participant

    After that addition to the settings file nothing happened. CodeDB still creates in Proj/.visualgdb directory.

    #31210
    support
    Keymaster

    Hi,

    No problem, please let us know the email associated with your license key so that we could link it to your profile, and we will help you get it working.

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