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



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: 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: 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: line duplication using logging to file
    ... Meanwhile I have written the logging function from scratch and it works ... This means that the multiple line copy is not due to the multiple ... Obviously there is some understantding of the logging module that I am ... here is the pyparsing program I used to do this analysis) ...
    (comp.lang.python)
  • Re: logging producing redundant entries
    ... within Zope Extensions. ... I'm using this simple logging setup at the top of a zope Extension module: ... You seem to be executing the code given above multiple ...
    (comp.lang.python)