Loading...
 
Skip to main content

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

  1. Open a terminal (shell)
  2. Go to the SVI installed directory with the 'cd' command.
    Copy to clipboard
    cd /usr/local/svi/bin
  3. Start the Huygens application in debug mode with the -dd -dt flags. Run:
    Copy to clipboard
    ./name_of_the_huygens_application -dd -dt
    For example:
    Copy to clipboard
    ./essential -dd -dt
    Note that the debug information will be printed to the terminal (see below).
  4. Reconstruct the problem that you had.
  5. 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

  1. 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.
  2. change directory to SVI installation directory. Run in the 'command line' black window:
    Copy to clipboard
    cd c:\program files\svi\bin
  3. You should see the line:
    Copy to clipboard
    C:\Program Files\SVI\bin
  4. Start the Huygens application in debug mode with the -dd -dt flags. Run:
    Copy to clipboard
    name_of_the_huygens_application -dd -dt
    For example:
    Copy to clipboard
    essential.exe -dd -dt
    The Huygens Application will be launched.
  5. Reconstruct the problem that you had.
  6. 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

  1. Open a terminal.
  2. Go to the SVI installed directory with the 'cd' command.
    Copy to clipboard
    cd /Applications/SVI/bin
  3. Start the Huygens application in debug mode with the '-dd -dt' flags. Run:
    Copy to clipboard
    ./name_of_the_huygens_application -dd -dt
    For example:
    Copy to clipboard
    ./essential -dd -dt
    Mind 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).
  4. Reconstruct the problem that you had.
  5. 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:
Copy to clipboard
./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.