Run in debug mode
This article explains how to generate a debug report for different platforms. Once it is generated, you can find it as explained in Debug Mode and send it to Svi Support for debugging.
The intention is to launch the program in debug mode, with the -dd -dt
command line options.
If you tackle with any problem using the Huygens, we would appreciate it if you'll send us a description of the problem, along with a debug log. This debug log is generated by the Huygens, upon running it in debug mode.
To run the Huygens in debug mode, please carry out the following instructions:
On Linux
- Open a terminal (shell)
- Go to the SVI installed directory with the 'cd' command.Copy to clipboardcd /usr/local/svi/bin
- Start the Huygens application in debug mode with the
-dd -dt
flags. Run:For example:Copy to clipboard./name_of_the_huygens_application -dd -dtNote that the debug information will be printed to the terminal (see below).Copy to clipboard./essential -dd -dt - Reconstruct the problem that you had.
- Please send the debug file (as explained in Debug Mode) to us by an e-mail attachment, along with a description of the problem to Svi Support.
On Windows
- open the command line window: Click start -> run and type "cmd" in the 'RUN' window and then click OK. A black 'command line' window will be opened.
- change directory to SVI installation directory. Run in the 'command line' black window: Copy to clipboardcd c:\program files\svi\bin
- You should see the line: Copy to clipboardC:\Program Files\SVI\bin
- Start the Huygens application in debug mode with the
-dd -dt
flags. Run:For example:Copy to clipboardname_of_the_huygens_application -dd -dtThe Huygens Application will be launched.Copy to clipboardessential.exe -dd -dt - Reconstruct the problem that you had.
- Please send the debug file (as explained in Debug Mode) to us by an e-mail attachment, along with a description of the problem to Svi Support.
On MacOSX
- Open a terminal.
- Go to the SVI installed directory with the 'cd' command.Copy to clipboardcd /Applications/SVI/bin
- Start the Huygens application in debug mode with the '-dd -dt' flags. Run: For example:Copy to clipboard./name_of_the_huygens_application -dd -dtMind thd dot-slash in front of the command!!! Note that the debug information may be printed to the terminal in some old versions (see below).Copy to clipboard./essential -dd -dt
- Reconstruct the problem that you had.
- Please send the debug file (as explained in Debug Mode) to us by an e-mail attachment, along with a description of the problem to Svi Support.
Redirect output from the screen to a file
On old Huygens version (<= 2.9), and on Linux and MacOSX systems, the debug log is printed on the terminal (stderr). You may want to redirect the output to a text file manually (quite useful if the debug log is large and you can not easily copy it from the screen). You can do the following when launching the program:./essential -dd -dt >& ~/debug_log.txt
This works in bash, csh or tcsh shells. The idea is to redirect (>&) both the stdout and stderr to the file named "debug_log.txt" in your home directory.
In the examples above, the program name "essential" should be changed to the actual Huygens program you are using, of course.