Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-6669

cmd: reroute TRACE messages to cmd console

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 0.4.15
    • Shell
    • None

    Description

      Created an attachment (id=5592)
      modified files base/shell/cmd

      Made a small adaption to redirect all TRACE output to the cmd console
      You can control it by setting an environment variable.

      example:
      D:\Apps>dir
      Volume in drive D is Data
      ....
      D:\Apps>set CMDTRACE=on

      D:\Apps>dir
      DoCommand: ('L"dir"' 'L""')
      Attributes mask/value 6/0
      (B) Bare format : 0
      (C) Thousand : 1
      (W) Wide list : 0
      (D) Wide list sort by column : 0
      (L) Lowercase : 0
      (N) New : 1
      (O) Order : 0
      (P) Pause : 0
      (Q) Owner : 0
      (S) Recursive : 0
      (T) Time field : 1
      (X) Short names : 0
      Parameter : L"*"
      Volume in drive D is Data
      ....

      2 files are changed:
      precomp.h:
      after #include <wine/debug.h> where TRACE is being defined
      if CMD_TRACE_DYNAMIC is defined, redefine TRACE

      set.c:
      defined a global BOOL for the current state and added a cmd_trace function
      Inside the function cmd_set it checks for the var CMDTRACE if it is being set or unset and uses that for the current state
      Code is only included if CMD_TRACE_DYNAMIC is defined in precomp.h

      Attached a zip file with the modified files (from the 3.12 version)

      Attachments

        1. dyntrace.patch
          1 kB
        2. dyntrace.patch
          2 kB
        3. dynamic-tracing-3.patch
          5 kB
        4. dynamic-tracing-2.patch
          5 kB
        5. dynamic-tracing-1.patch
          3 kB
        6. dynamic-tracing.patch
          3 kB
        7. cmdtrace.zip
          4 kB

        Issue Links

          Activity

            People

              katayama_hirofumi_mz Katayama Hirofumi MZ
              hansh Hans Harder
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: