Thanks for experimental version. Hmm ... after some uzzlement, I conclude that you have fixed the spaces issue, and brought another 'feature' into sharper relief in the process. I am still getting an error message I never saw before (I was getting it yesterday when I was investigating the current release version of sdbg, but couldn't quite figure out how to do so reproducibly; I have, now). The error message reads as follows:
<Title bar>Problem loading program</Title bar>
'The file executed may not match the one you intended to debug. This maybe (sic) because there is a copy of your program on the Windows path and it has been loaded in preference to a local one'
Here are my observations with the experimental version of sdbg (still confined to Win2k ATM). They are weird; are you sitting down? The issue now seems to revolve around whether the alternative location is the same as it was when it was first created, not whether it has spaces or not. However, there has been progress inasmuch as case 2a) now functions correctly:
- Original source path present:
-
- alternative location is unrenamed (and has spaces in path): sdbg loads original source and is happy.
-
- alternative location is renamed (and may or may not have spaces in path): I get the weird error, sdbg loads original source and flags (File modified) after the path in the source window title bar
- Original source path not present:
-
- alternative location is unrenamed (and has spaces in path): sdbg loads alternative source and is happy.
-
- alternative location is renamed (and may or may not have spaces in path): I get the weird error, sdbg loads alternative source and flags (File modified) after the path in the source window title bar
I tested my hypothesis about sdbg somehow remembering the original name of the alternative location, and it checks out, and it has nothing to do with spaces. I created another alternative location without spaces in the path, and copied sdbg and alternative source to it. As long as I don't rename that folder, sdbg functions as it is supposed to: it picks up the original source if the development path exists, and the alternative source if the development path does not exist. However, if I rename the folder, even eschewing spaces, I get the error, sdbg loads whichever source is appropriate and flags it as (File Modified). If I name the folder back again, sdbg once again functions as it is supposed to.
It is as if every copy of sdbg is somehow keeping a record of where it was when it was first run and referring back to it subsequently!?!
Andy