environmentstacktrace

December 26, 2025 ยท View on GitHub

Shows how to use xtd::environment class.

Sources

Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run

Output

environment::stack_trace:
   at xtd::environment::stack_trace() [0x00002C20] in !---OMITTED---!/environment.cpp:line 255
   at test3() [0x00002B40] in !---OMITTED---!/environment_stack_trace.cpp:line 5
   at test2() [0x00002CA0] in !---OMITTED---!/environment_stack_trace.cpp:line 9
   at test1() [0x00002CB0] in !---OMITTED---!/environment_stack_trace.cpp:line 13
   at main [0x00002CC0] in !---OMITTED---!/environment_stack_trace.cpp:line 17