Skip to content

Debugging DMZ In Visual Studio

Scott Shillcock edited this page Aug 27, 2010 · 1 revision

There are two methods for running DMZ in the Visual Studio debugger.

Attaching from the Task Manager

  1. Bring up the Windows Task Manager.
  2. Select the Processes tab.
  3. Right click on the process to debug.
  4. Select the debug options from the context menu.

Launching from the Command Line.

Most DMZ shell scripts will launch in the debugger if the environment variable DMZ_DEBUG is set to "true".

To set an environment variable in Bash running in Cygwin:

% export DMZ_DEBUG=true

To unset the variable:

% unset DMZ_DEBUG

To run an executable in the Visual Studio debugger from the command line run:

C:\Executable\Location> devenv.exe /debugexe Test.exe [parameters passed to Test.exe]
Clone this wiki locally