A Rare Case of Erythropoietic Protoporphyria with Liver Cirrhosis

1Case Information The patient is a 38-year-old married male. He was admitted on October 30, 2022, due to “burning sensation on the skin after sun exposure for over 30 years, jaundice, and abdominal pain for one week.” The patient reported that since childhood, he experienced a burning sensation on the skin of his hands and … Read more

The Process of Collecting MySQL Core Dump Stack Information

Whether for databases or applications, when issues arise, knowing the exception stack information can greatly assist in identifying the root cause and fundamentally resolving the problem. The stack information from MySQL can similarly aid in problem-solving. This article from the technical community, 《MySQL Fault Reporting Core Dump Collection Process》 introduces the process of collecting core … Read more

CLion Tutorial – Hex View & Mute Variables

Hex View For integer type numeric variables, you can view the hexadecimal representation instead of or alongside the original format. The hexadecimal view for integer types is supported by GDB and LLDB debuggers on all platforms, including remote debugging and WSL scenarios. To enable the hexadecimal view, go to Settings | Build, Execution, Deployment | … Read more

CLion Tutorial – Peripheral View

During a debugging session, you can monitor the registers and peripherals defined in the .svd file. The Peripheral View is applicable to two configuration types: Embedded GDB Server and OpenOCD Download & Run. Configure the Peripheral View by setting up the Embedded GDB Server or OpenOCD Download & Run configuration, and start the debugging session. … Read more

CLion Tutorial – Remote Debugging Configuration

Local Operating System: macOS / Linux / Windows for GDB, macOS / Linux for LLDB Remote Operating System: Any operating system supporting gdbserver for GDB, macOS / Linux or other operating systems supporting lldb-server for LLDB Required Tools: gdbserver or lldb-server on the target machine Binary and Symbol File Synchronization: Manual Client Debugger: Bundled GDB … Read more

Summary of Remote Development Options in CLion

CLion has several remote development options, each tailored to specific setups: Remote development using JetBrains Gateway Remote development with local sources WSL2 Docker (running locally) Two variants of gdbserver/lldb-server debugging: remote debugging (GDB/LLDB) and remote GDB server (GDB only). The following is a summary of the remote development options, which can be decided based on … Read more

Debugging Nt!KiSystemStartup Using IDA, WinDbg, and VMware

KiSystemStartup is the entry function of the kernel module nt. If you want to debug this function, simply using WinDbg and VMware won’t work (or I don’t know how to do it). Below, I will introduce how to use IDA’s GDB debugging feature in conjunction with WinDbg to debug KiSystemStartup. (Only for X64 environment) 1. … Read more

CLion Tutorial – Debugger Console & Attach to Process

The debugger console allows you to directly access the GDB/LLDB console from CLion during a debugging session. The debugger console is only available when the program is paused. Open the tab marked LLDB or GDB in the debugging tool window: This tab shows the debugger's output/error stream and allows you to run GDB/LLDB commands. 👇 … Read more

CLion Tutorial – Embedded GDB Server

Operating System: Windows (MinGW or MinGW-w64) / Linux / macOS Required Tools: Debug probe with software, cross-compiler toolchain Build Targets: CMake / Makefile / Custom build targets To debug on the chip, you need to create a special run/debug configuration. In CLion, you can quickly create the following GDB server configurations using the "New Embedded … Read more

Debugging GDB for JiCity Encapsulation Code

A few days ago, I participated in the algorithm competition on the JiCity platform, which focused on image recognition, behavior recognition, image segmentation, and other areas. The documentation and various tutorials are quite comprehensive, and there are sample codes and video explanations to help you get started. Additionally, there are mentors available in the WeChat … Read more