Skip to main content


Sets the working directory for the integrated debugger.

debugdir "path"

Note that this settings is not implemented for Xcode, which requires a per-user configuration file in order to make it work.

In Visual Studio, this file can be overridden by a per-user configuration file (such as ProjectName.vcproj.MYDOMAIN-MYUSERNAME.user). Removing this file (which is done by Premake's clean action) will restore the default settings.


path is the path to the working directory, relative to the currently executing script file.

Applies To

Project configurations.


Premake 4.4 or later.


filter { "configurations:Debug" }
debugdir "bin/debug"