Sysprogs forums › Forums › VisualGDB › Is there a way to change the directories "VisualGDB" and "CodeDB"?
- This topic has 12 replies, 3 voices, and was last updated 3 years, 4 months ago by support.
-
AuthorPosts
-
December 1, 2017 at 03:20 #13098codetronikParticipant
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?
December 1, 2017 at 18:33 #13100supportKeymasterHi,
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.
December 2, 2017 at 11:27 #13110codetronikParticipantThis 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.December 2, 2017 at 19:22 #13114supportKeymasterHi,
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.
December 2, 2017 at 20:16 #13119codetronikParticipanti 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.December 2, 2017 at 20:22 #13126supportKeymasterHi,
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>
December 2, 2017 at 20:37 #13127codetronikParticipantDo 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
December 2, 2017 at 21:54 #13129codetronikParticipantIf 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″>
<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.December 2, 2017 at 22:32 #13135codetronikParticipantI’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.December 2, 2017 at 23:53 #13137supportKeymasterHi,
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).
August 25, 2021 at 02:50 #31202embedMasterParticipantGood 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.August 25, 2021 at 02:52 #31204embedMasterParticipantAfter that addition to the settings file nothing happened. CodeDB still creates in Proj/.visualgdb directory.
August 25, 2021 at 09:02 #31210supportKeymasterHi,
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.
-
AuthorPosts
- You must be logged in to reply to this topic.