Why print logs? How to write log files (with source code) when C + + is high and distributed?

Why print logs? Isn't it a happy thing to let the program run naked? Some bugs are like Schrodinger's cat. They have wave particle duality. When you try to observe them, they disappear. When you don't observe them, they appear again. When you swear in front of the tester and run the program in UTF-8...

Posted by tisa on Mon, 20 Dec 2021 04:54:19 +1030

Come on, let me see what you're doing?

Original author: DavidDiOriginal link: https://www.ebpf.top/post/system_debug_stack/Copyright notice: this work adopts Creative Commons Attribution - non commercial use - no deduction 4.0 international license agreement For non-commercial reprint, please indicate the source (author, original liUTF-8...

Posted by MrBillybob on Sun, 16 Jan 2022 02:53:34 +1030

pthread_ core dump + Learning gdb caused by mutex

Example #include #include #include "pthread.h" pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; void * process(void * arg) { fprintf(stderr, "Starting process %s\n", (char *) arg); while (1) { /* Lock and wait for some resources */ pthread_mutex_lock(&lock); fprintf(stderrUTF-8...

Posted by keveen on Mon, 24 Jan 2022 07:07:50 +1030

Shit! I was ridiculed by the project manager and colleagues because I can't debug remotely

Hello, I'm Cao NIMA. I've just graduated from a training institution and have been working in a unit for a week This week, the project manager made me familiar with the project business, architecture and design. It's not difficult. With the first place of my training institution, it's still verUTF-8...

Posted by dcj1978 on Sun, 30 Jan 2022 15:21:35 +1030

c + + and fortran programs are compiled and debugged by cmake and vscode using different compilers of microsoft, intel and gnu under windows

c + + and fortran programs are compiled and debugged by cmake and vscode using different compilers of microsoft, intel and gnu under windows Due to the different compiler support features, the running speed of the compiled program, the convenience of installation and use, we often install a varUTF-8...

Posted by derchris on Mon, 31 Jan 2022 21:03:36 +1030

Build a Tomcat source code reading environment, run and debug without bugs. Let's learn Tomcat together!

1, Foreword Tomcat, a familiar and unfamiliar tool for running the web. Usually, a new web project is copied and modified according to the existing project. In case of problems, Baidu can solve them by adjusting parameters and changing paths. However, what is the function of this parameter in UTF-8...

Posted by A2xA on Mon, 31 Jan 2022 21:08:25 +1030

Qt's qDebug() printing and QString Chinese garbled code

preface In the process of qt code development, the most commonly used should be qDebug(), which tracks the execution sequence of the program and prints the variable content. 1, qDebug()? Using the qDebug() function, it can output debugging information directly to the console. There are two wayUTF-8...

Posted by bobob on Thu, 17 Feb 2022 20:40:45 +1030

Assembly language and Application -- program design

1. Build assembly language source program ASM Create a source file for EX_1.ASM saves the file name Run the program as follows: Debug the program, change the content of the second string with the e command, and then run the program with the G command. The result output is MATCH! As shown in theUTF-8...

Posted by sv4rog on Fri, 25 Feb 2022 00:59:14 +1030

Summary of solutions to common errors in compilation

Assembly error set This article is reproduced from https://www.cnblogs.com/cway/p/12794979.html The author is whxway. On this basis, this paper sorts the errors for easy search Already had ELSE clause ELSE statement already exists Use more than one ELSE statement in a condition block Angle bracUTF-8...

Posted by jonah on Mon, 18 Apr 2022 21:38:33 +0930