I'm debugging C++ native application on Visual Studio 2015.
After stopping on a breakpoint, I would like to know the Current Directory. (It could have changed during the execution before stopping on that breakpoint).
On .NET debugging it is possible through the immediate window. This does not work when debugging C++ native application.
Is there a way I could find out the Current Directory when debugging C++ native application?
To make it clear - I don't want to change and build my code again. I would like to find this out in the debugger (watch window, command/immediate window etc.)
$env
pseudovariable in a watch window (for the nicer viewer) could help, although it's not a direct answer. – Hayrick$env
, I could not find anything that reveals the Current Directory. – Dreibund=C:=
at the very beginning, which contain the simulated per-drive current directories. Unfortunately, this only works reliably in a console app. Those entries can be slightly different (or not present at all) in non-console windows apps, depending on other things that the app is doing. That's why I don't consider this an answer, but I thought it was worth mentioning. Adding a pseudovariable for this could be a nice suggestion to make to the VS team. – Hayrick