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

cmd: reroute TRACE messages to cmd console

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
    • Environment:

      Operating System: ReactOS
      Platform: x86 Hardware

      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. cmdtrace.zip
          4 kB
        2. dyntrace.patch
          2 kB
        3. dyntrace.patch
          1 kB

          Issue Links

            Activity

              People

              • Assignee:
                hbelusca hbelusca
                Reporter:
                hansh Hans Harder
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: