Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
817 B

  1. @echo off
  2. REM
  3. REM mkwdbg.cmd
  4. REM Usage: mkwdbg [yes|no|what]
  5. REM By default turns on debugging related flags
  6. REM
  7. set DBG_SET=1
  8. if (%1)==(yes) set DBG_SET=1
  9. if (%1)==(on) set DBG_SET=1
  10. if (%1)==(no) set DBG_SET=0
  11. if (%1)==(off) set DBG_SET=0
  12. if (%1)==(what) goto printWhat
  13. if (%1)==() goto printWhat
  14. if (%DBG_SET%)==(0) goto noDebugSet
  15. set NTDBGFILES=YES
  16. set NTDEBUG=ntsd
  17. set NTDEBUGTYPE=both
  18. set MSC_OPTIMIZATION=/Od
  19. echo Debug is now set ON
  20. goto endOfBatch
  21. :noDebugSet
  22. set NTDBGFILES=no
  23. set NTDEBUG=
  24. set NTDEBUGTYPE=
  25. set MSC_OPTIMIZATION=
  26. echo Debug is now set OFF
  27. goto endOfBatch
  28. :printWhat
  29. echo NTDBGFILES is %NTDBGFILES%
  30. echo NTDEBUG is %NTDEBUG%
  31. echo NTDEBUGTYPE is %NTDEBUGTYPE%
  32. echo MSC_OPTIMIZATION is %MSC_OPTIMIZATION%
  33. goto endOfBatch
  34. :endofBatch
  35. set DBG_SET=
  36. @echo on