[DiscordArchive] how can i see value of variable ?
[DiscordArchive] how can i see value of variable ?
Archived author: Rymercyble • Posted: 2022-10-10T17:40:07.139000+00:00
Original source
how can i see value of variable ?
Archived author: Revision • Posted: 2022-10-10T18:09:31.746000+00:00
Original source
If it isn't pre-defined, *one* option is to output it to the console window.
Archived author: Rymercyble • Posted: 2022-10-10T18:17:08.835000+00:00
Original source
i guess i cant just do `std::cout << ` or ?
Archived author: Nyeriah • Posted: 2022-10-10T18:19:24.721000+00:00
Original source
LOG_ERROR(“server.server”, “var output: {}”, myVariable);
Archived author: Nyeriah • Posted: 2022-10-10T18:19:47.574000+00:00
Original source
There are different log levels. I use error because that one always prints
Archived author: Rymercyble • Posted: 2022-10-10T18:24:04.846000+00:00
Original source
so and each time i want to do smallest possible test or just show some data like this for debug or whatever i have to rerun build inside IDE which will recompile that part of code and start server again right ? thats quite time consuming process compared to scripting languages
Archived author: Revision • Posted: 2022-10-10T18:33:51.325000+00:00
Original source
`LOG_INFO("server.loading", text);` would output it to the worldserver console no matter what
Archived author: Rymercyble • Posted: 2022-10-10T18:34:24.433000+00:00
Original source
i mean error will be easier to find since its red
Archived author: Revision • Posted: 2022-10-10T18:34:49.440000+00:00
Original source
If it prints it then yes - that's the one you should go with.
Archived author: Rymercyble • Posted: 2022-10-10T18:51:32.414000+00:00
Original source
what should i do when this tells me `In template: static_assert failed due to requirement 'formattable_pointer' "Formatting of non-void pointers is disallowed."` ?