[vbox-dev] how to turn on the log when debugging

Dmitry A. Kuminov dmik at innotek.de
Wed Nov 14 12:40:14 PST 2007


edison su wrote:

>     I meets an issue when running VBox, and I want to debug it.
>    Could some one can tell me how to turn on the log, or changing the
> debug level at run time?
>    I have already set BUILD_TYPE=debug during build. If I can get the
> function flow, it'll help me a lot to debug.
>    Appreciate any help from yours.

To enable (almost) all logging, do:

export VBOX_LOG=+all.e.l.f
export VBOX_LOG_FLAGS=time\ tid\ thread
export VBOX_LOG_DEST=dir=<dir_where_to_put_log_files_to>

Please note that this will generate really huge log files and slow down 
VM execution. If you need to track down a problem in a particular 
component, you can only enable logging for this component (or a set of 
components). Refer to VBOX_LOGGROUP_NAMES defined in include/VBox/log.h 
for a list of components and use names there instead of 'all' above.

-- 
Regards,
Dmitry A. Kuminov





More information about the vbox-dev mailing list