A way for print something from the source code?

Discussions related to using the OSE version of VirtualBox.

A way for print something from the source code?

Postby Johannesynt » 18. May 2014, 18:28

Hi, i'd like to find a way for print something from source code. I tried with printf, but i t works only when i start Virtualbox; when a start a virtual machine installed on virtulabox, printf doesn't work anymore. I tiried with LogRel, but it seemd not work in all .ccp files. I use that like a tracker, for check if some part of code is execute or not.
Thanks
Johannesynt
 
Posts: 10
Joined: 18. Apr 2014, 22:18

Re: A way for print something from the source code?

Postby noteirak » 18. May 2014, 20:35

There is a log file per machine launched, so maybe you should look into using that log file for that sort of thing - you should easily find an example in the code by looking for one of the string you can find in the log per example.
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5198
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: A way for print something from the source code?

Postby Johannesynt » 18. May 2014, 22:56

Thanks!
Johannesynt
 
Posts: 10
Joined: 18. Apr 2014, 22:18


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 1 guest