debugging - WinDbg environmental variables -


when using windbg debug executable, there way specify batch script run before debugging starts set environmental variables debug session?

i'm attempting mimic automated test environment executable run. variables contain information current build number is, results directory , 3rd party tools directory located. hard-code these application own testing, that's ugly :).

this of course on windows os, , rather not use different debugger.

if windbg doesn't support directly, best way achieve functionality?

windbg's -o option causes automatically attach child processes, useful debugging program launched program. if run windbg -o cmd.exe /c myscript.bat, windbg debug cmd.exe (which can skip over) every child process spawned instance of cmd.exe. might annoying if batch file runs lot of other commands before running 1 want debug, sx* commands (e.g. sxn ibp; sxe ld:mymodule) ought able reduce annoyance.

another approach use image file execution options registry key attach windbg (or cdb/ntsd) whenever exe launched.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -