Re: Trace debugging in run-time (re-direct Debug.Print to a file?)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You could use a file logging class that is safe to use with multiple
processes and/or threads Sinna, e.g.
http://groups.google.co.uk/group/microsoft.public.vb.com/msg/e2e67b2bdfc0ae5b?hl=en&;

Tony Proctor

"Sinna" <news4sinna_NOSPAM@xxxxxxxxxx> wrote in message
news:eBTs$SHvHHA.3816@xxxxxxxxxxxxxxxxxxxxxxx
gh wrote:
Hi,
I want to see all the steps at debugging without watching any specific
variables, breakpoint...!
Is it possible to re-direct?
I'm using vb6 and can not find any hint on how to do in MSDN.

Thanks
gh

Look in MSDN for OutputDebugString. It doesn't redirect to a file, but
to the Debug Console/View. Download DbgView from SysInternals (now MS)
and see you debugging info passing by.

Note that I'm not redirecting you to a file-based logging as it has some
overhead and possible issues as Windows doesn't update the log file
every time you write a line to it. So if your application crashes it's
possible you don't have the complete log.
If you want to save the debug info to a file, you can use the
save-function of DbgView.
Another reason I don't use file-based logging is to avoid collisions
when multiple instances of the application are open.

Sinna


.



Relevant Pages

  • Re: Catching user switching and getting current active user from root on linux
    ... I understand that there can be multiple ... people logged in, and yes if you really wanted to, you could login as ... with your logging software. ... How are you logging web site accesses ...
    (comp.lang.python)
  • Re: lew? 2 qq
    ... Everyone writes to the same channel, and the logging overhead to stderr is incurred with every call; that can have an adverse impact on performance. ... you have to invent your own formats, disentangle all the output from multiple sources, disentangle important output from less so, and you can't selectively suppress some log output and not other. ... All less critical messages ("WARNING", "DEBUG", etc.) not only are not emitted, they have negligible impact on production performance. ... Logging is configurable at deployment time via an external resource file, so you don't even have to hard-code all that control. ...
    (comp.lang.java.help)
  • Re: Logging 0.7.0 (Quixotic Starfish)
    ... Multiple Rails processes can ... You can also use the Syslog appender in Logging and dump to the syslog ... This is good for collecting logs from multiple machines. ...
    (comp.lang.ruby)
  • Re: Future ISPF directions (was: Re: How Was Share?)
    ... Shutting off propagation of the Enqueue for PROFILE would only ... apply to logging on to multiple systems in the sysplex. ... LOG might be a bigger issue if you wanted multiple concurrent ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: Logging components?
    ... I think Logging is pretty much individual, so that usualy everyone has their ... {Write Logged exception into the Log file? ... {Write exception with a short string description into the Global App Log ... > By logging components, I specifically DON'T MEAN components for catching ...
    (borland.public.delphi.thirdpartytools.general)