Home / Companies / Tinybird / Blog / Post Details
Content Deep Dive

ClickHouse ® tips #2: Debugging ClickHouse ® on Visual Studio Code

Blog post from Tinybird

Post Details
Company
Date Published
Author
Alberto Romeu
Word Count
149
Company Posts That Month
51
Language
English
Hacker News Points
-
Post removed?
No
Summary

Debugging ClickHouse® using Visual Studio Code involves building ClickHouse for debugging by adapting the build with specific flags, such as disabling jemalloc, and running ninja for the clickhouse-server and clickhouse-client, which takes less than an hour. To debug, one must install the C++ extension and gdb, create a new run configuration in the .vscode directory, and set breakpoints directly in the editor to run the code from within Visual Studio Code. After making changes to a cpp file, recompilation is straightforward, thanks to the compile_commands.json file in the build folder, which aids in calling ninja to regenerate the ClickHouse binary by recompiling only the dependencies.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.