Hi,
I usually have no problem using debugger. However today I tried to use this folder layout :
- Project
--- bin
----- debug
----- release
--- src
--- units
----- debug
----- release
Lazarus project files are in /src/
To get exe files in /bin/debug/ and other files in /units/debug/ I set units output directory to
..\units\debug in path tab (picture1) and directory for compiled program to
-FE..\bin\debug\ in custom options of Other tab (see picture 2).
The resulting command line option is
-FU..\units\debug\ -FE..\units\debug\ -oproject1.exe -FE..\bin\debug
The second -FE switch override the first one (added automatically by Lazarus if we fill the units output directory). This work fine if I build the program but it does not if I want to run it for debugging. With such configuration, i get :
no program file "C:\project\units\debug\project1.exe" found
Debugger does not look for the compiled program in /bin/ folder but in /units/. I tried to move the units output directory from the path tab to the custom options :
-FE..\bin\debug\
-FU..\units\debug\
but this time I get:
no program file "C:\project\src\project1.exe" found
This time the debugger look for the compiled program in /src/ folder. I would like to know if I missed some options or if I can submit a bug report.