Un exemple de profiling pour trouver les goulots d'étranglement dans vos applications Node.js / Bun.
Un exemple de profiling pour trouver les goulots d'étranglement dans vos applications Node.js / Bun.
capytrace.nvim is a powerful and useful tool for Neovim developers, offering features like session recording, event analysis, and smart filtering. 🚀
Contributions are welcome to help improve and expand the tool! Check out the project and contribute at https://github.com/andev0x/capytrace.nvim.git
Thanks for your support! 🙏

capytrace.nvim is a privacy-first debugging session recorder for Neovim, capturing meaningful workflow events and turning them into clear, actionable debugging insights. - andev0x/capytrace.nvim
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 !
Отладка Программ Уровнями Логирования (или Медицинская Карта Вашей Программы)
Программы часто отлаживают применяя printf-отладку. Однако в этом есть недостаток. Со временем вывод printf сообщения становится настолько частыми и плотным, что становится просто невозможно что-либо прочитать. Чтобы с этим бороться придумали уровни логирования LogLevels. Суть в том, чтобы из shell консоли в run time можно было включать или отключить логи для конкретных программных компонентов. Отдельными командами вы можете увеличивать или уменьшать многословность логирования. Это позволяет Вам сфокусировать внимание на конкретном программном компоненте и найти суть ошибки в программе или причину по которой не проходит модульный тест.
https://habr.com/ru/articles/1016480/
#LogLevel #log_levels #loglevels #debug #error #warning #notice #trace #info #paranoid
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);
}tee: /sys/devices/platform/i8042/serio1: Is a directory
33
sh: 2: /serio2/speed: not foundchar *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;
}🛠️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
Debug‑web: консольный отладчик для прода
Компактный пакет debug-web решает вечную проблему тестировщиков и разработчиков: «А стенд актуален?». Добавьте в проект несколько строк кода — и в консоли всегда будут версия сборки, время деплоя и любые другие данные. Уровень логирования меняется прямо из консоли, без пересборки. Рассказываю, как мы экономим часы на поиске информации и отладке.
https://habr.com/ru/companies/itfb/articles/1011080/
#отладка #консоль #npmпакет #debug #logging #debugging #тестирование_вебприложений #itfb
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!