To receive such a great review of my indie game in one of my fav gaming magazines, is one hella achievement for me!

thanks @debugorg !

#gaming #indiegame #debug #gamedev

Отладка Программ Уровнями Логирования (или Медицинская Карта Вашей Программы)

Программы часто отлаживают применяя printf-отладку. Однако в этом есть недостаток. Со временем вывод printf сообщения становится настолько частыми и плотным, что становится просто невозможно что-либо прочитать. Чтобы с этим бороться придумали уровни логирования LogLevels. Суть в том, чтобы из shell консоли в run time можно было включать или отключить логи для конкретных программных компонентов. Отдельными командами вы можете увеличивать или уменьшать многословность логирования. Это позволяет Вам сфокусировать внимание на конкретном программном компоненте и найти суть ошибки в программе или причину по которой не проходит модульный тест.

https://habr.com/ru/articles/1016480/

#LogLevel #log_levels #loglevels #debug #error #warning #notice #trace #info #paranoid

Отладка Программ Уровнями Логирования (или Медицинская Карта Вашей Программы)

Программы часто отлаживают применяя printf-отладку. Однако в этом есть недостаток. Со временем вывод printf сообщения становится настолько частыми и плотным, что становится просто невозможно что-либо...

Хабр

I'm working on tool to allow you to easily change your Trackpoint settings on the Lenovo thinkpads. The little nipple. I'm writing it in C to help me learn the language more. I'm having a problem I can't quite put my paw on.

The code responsible for changing the setting is:

int set_nipple_speed(int speed) { if (speed <= 0) { printf("Invalid value %d speed must be greater than 0", speed); return 1; } char command[100]; char * path = get_trackpoint_path(); sprintf(command, "echo %d | sudo tee %s/serio2/speed", speed, path); return system(command); }
I'm getting:
tee: /sys/devices/platform/i8042/serio1: Is a directory 33 sh: 2: /serio2/speed: not found
Oh and theres a function being called to get the base path to get to the trackpoint settings:
char *get_trackpoint_path() { FILE *pipe_stream = popen("find /sys/devices/platform/i8042 -name name | xargs grep -Fl " "TrackPoint | sed 's/\\/input\\/input[0-9]*\\/name$//'", "r"); char path[2048]; if (pipe_stream == NULL) { printf("Failed to run command to find trackpoint path"); return NULL; } fgets(path, sizeof(path), pipe_stream); pclose(pipe_stream); char *path_ptr = path; return path_ptr; }
Would anyone be willing to help me
#debug this? I'm pretty new to C. Project is here #codinghelp

🛠️How much time do you spend debugging C++?

35%? 50%? 75%?
Join @MikeShah online debugging workshop on the 17th April where you’ll:
✔️ Practice in real time
✔️ Learn proven techniques
✔️ Actually improve how you debug

Full video: https://youtu.be/ocaceZWKm_k

#cpp #debug #gdb

Does anyone have any pointers for getting Meilisearch working with Sharkey/Misskey?

Both are installed and start up correctly. When I search I can see in Meilisearch's journald log that I am getting a query, but nothing returns.

One lead I have is that teh query parameters are blank in the journald logs - but that could just be for privacy reasons.

I don't see anything (after successfully connecting to Meilisearch) in the Sharkey logs.

#sharkey #misskey #meilisearch #help #debug

Debug‑web: консольный отладчик для прода

Компактный пакет debug-web решает вечную проблему тестировщиков и разработчиков: «А стенд актуален?». Добавьте в проект несколько строк кода — и в консоли всегда будут версия сборки, время деплоя и любые другие данные. Уровень логирования меняется прямо из консоли, без пересборки. Рассказываю, как мы экономим часы на поиске информации и отладке.

https://habr.com/ru/companies/itfb/articles/1011080/

#отладка #консоль #npmпакет #debug #logging #debugging #тестирование_вебприложений #itfb

Debug‑web: консольный отладчик для прода

Привет! Меня зовут Карлен, я lead frontend‑разработчик в ITFB Group. Сегодня расскажу о библиотеке, которую я создал для решения нашей внутренней боли. Но теперь она помогает не только...

Хабр
Do you (sometimes) use print() or message() for debugging your code? Next time you can use {icecream} instead: https://turtletopia.github.io/2022/07/28/ice-cream-for-r-programmers/ #rstats #icecream #debug
Ice Cream for R Programmers - Turtletopia: a blog about programming in R

Icecream is a tool which may serve as a more sophisticated replacement of using print while debugging.

I just dealt with a nasty "Variable Shadowing" bug that took me 3 days to debug because I just wasn't able to see the forest from the tree.

#plsql #sql #debug #programming #coding #webdev #pain #5LinesToUpdate #3DaysToFix

Oh that was a #debug win anyway - I hadn't given the games enough privileges to reset themselves.

Mind you, who needs a reset game, they are boring!

It would be nice if the Rust derived Debug trait had a way to ignore fields, rather than having to implement it manually and skip the field thats causing issues.

#rust #derive #debug #skip