There are a couple of choices:
- use run paused and manually COPY items from one location next to your debug application
- use a post build script so you can set it up once and then just hit run like always
PostBuild scripts run after the compiler has compiled your application but before the debugger has started your application.
The set up for a PostBuild script is fairly straight forward (I'll use our case as an example)
- next to your project file create a directory called "Scripts"
- create a new IDE Script, add the required code to do your copies and save it into this directory as "PostBuild.rbs"
Our script contains the following :
dim s as string
s = DoShellCommand( "xcopy /E/C/Y %PROJECT_PATH%\Framework " + CurrentBuildLocation + "\Framework\", 99999)
s = DoShellCommand( "xcopy /E/C/Y %PROJECT_PATH%\Resources " + CurrentBuildLocation + "\Resources\", 99999)
These two commands copy the entire contents of the Frameworks and Resources directories from directories next to the project file into the newly build debug app.
You might want to put all your debug resources (pictures , dll's, etc) in a directory next to the project file and then just use xcopy to copy the contents of that into the directory where the debug app got built to.