Reputation: 549
Is there a way to make Visual Studio expand *
in file names (and directory names) before invoking the debugger? When I write, e.g., *.txt
as the command line arguments, the args[]
variable will contain just one entry ("*.txt"
), rather than one entry for each matching file. Do I have to write my own code to do this expansion?
Upvotes: 0
Views: 204
Reputation: 11662
If you are invoking visual studio as such:
devenv /debugexe 'myprogram' *.txt
then yes, args[]
will contain '*.txt'
and you will need to parse and respond to that in your program. (Just the same as if you'd launched the program without the debugger).
Upvotes: 1