Shows how to use xtd::diagnostics::stack_trace class.
#include <xtd/diagnostics/stack_trace>
#include <xtd/console>
#include <xtd/startup>
 
 
namespace stack_trace_example {
  class main_class {
    static void method3() {
      console::write_line("stack_trace :");
    }
    
    static void method2() {
      method3();
    }
    
    static void method1() {
      method2();
    }
    
  public:
    static void main() {
      method1();
    }
  };
}
 
startup_(stack_trace_example::main_class::main);
 
 
Represents a stack trace, which is an ordered collection of one or more stack frames.
Definition stack_trace.hpp:40
 
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:175
 
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.hpp:10
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10