Question and Answer Database FAQ1330C.txt Can't open data files in a relative path while debugging Category :IDE Platform :All Product :BC++ 5.x Question: My program accesses data files in a directory whose name is a relative path based off of the directory in which the executable is run. I am unable to debug this, however, because even though I build the executable into its own directory, the integrated debugger believes its working directory to be bc5\bin, which makes my program fail to find its data files. What do I do? Answer: Modify your program to make it wait for some input before doing anything interesting. Run the program from its natural directory, under windows (not under the debugger), and then use Debug|Attach to attach to the running process. Then give your executable the input it needs to proceed, and you should be able to debug as normal. 5/13/98 10:44:52 AM
Last Modified: 01-SEP-99