xtd 0.2.0
Loading...
Searching...
No Matches

◆ get_file_column_number()

virtual xtd::size xtd::diagnostics::stack_frame::get_file_column_number ( ) const
virtualnoexcept

Gets the column number in the file that contains the code that is executing. This information is typically extracted from the debugging symbols for the executable.

Returns
The file column number, or 0 (zero) if the file column number cannot be determined.
Examples
The following example demonstrates the use of the get_file_column_number() method. This code example is part of a larger example provided for the xtd::diagnostics::stack_frame class.
// Display the stack frame properties.
stack_frame sf = st.get_frame(i);
console::write_line(" Line Number: {}", sf.get_file_line_number());
// Note that the column number defaults to zero when not initialized.
console::write_line(" Column Number: {}", sf.get_file_column_number());
console::write_line(" Method: {}", sf.get_method());
console::write_line(" Offset: {}", sf.get_offset());
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
virtual const xtd::string & get_file_name() const noexcept
Gets the file name that contains the code that is executing. This information is typically extracted ...
virtual xtd::size get_file_line_number() const noexcept
Gets the line number in the file that contains the code that is executing. This information is typica...
virtual xtd::size get_file_column_number() const noexcept
Gets the column number in the file that contains the code that is executing. This information is typi...
virtual const xtd::string & get_method() const noexcept
Gets the method in which the frame is executing.
static constexpr xtd::size OFFSET_UNKNOWN
Defines the value that is returned from the get_offset() method when the offset is unknown....
Definition stack_frame.h:108
virtual xtd::size get_offset() const noexcept
Gets the offset from the start of the code for the method that is being executed.
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:46
@ i
The I key.