Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] New debug dump functionality #2660

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Dazzar56
Copy link
Contributor

@Dazzar56 Dazzar56 commented Feb 5, 2025

По мотивам #802

Предложения, замечания и PR в ветку Dazzar56/far2l/debug_dump приветствуются.

прямо сейчас лог дампиться вот в таком виде.

/-----[PID:350305, TID:0]-----[2025-02-05 22:08:06,130]-----
|[/home/anton/far2l/far2l/src/main.cpp:318] in MainProcess()
|=> msg = тестовое сообщение лога
|=> c_str = Hello, C-string! абв
|=> c_arr = Hello, char array! абв
|=> w_str = Hello, wide C-string! абв
|=> w_arr = Hello, wide char array! абв
|=> s_str = Hello, std::string! абв
|=> ws_str = Hello, std::wstring! абв
|=> fs = Hello, FARString! абв
|=> i = 42
|=> l = 1234567890

@@ -75,7 +75,7 @@ set(VERSION_PATCH "${VERSION_PATCH}-beta")
set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")

set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
Copy link
Contributor

@akruphi akruphi Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Всё-таки такая смена с 11 на 17 должна быть не постоянной, а только для CMAKE_BUILD_TYPE равное например DEBUGextend, т.е. даём разрабам возможность дебажить по старинке в стандарте 11 и по новому в стандарте 17 имея риск, что, если применены новомодности, то потом при сборке релиза в стандарте 11 они боком вылезут.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ага, это первая из моих хотелок в тикете. Надо делать и сборку дампера и общий режим C++17 отключаемыми вместе.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants