Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Johannes Altmanninger edited this pageAug 7, 2022 ·4 revisions

C++ tooling setup

If you want to use Clang tools (e.g. clangd via kak-lsp) to hack on Kakoune's C++ sources. you'll need to create acompile_commands.json file so the Clang tool will use the correct build flags.

One solution is to wrap yourmake invocations withbear:

bear -- make debug=yes clean all

Another solution is toteach the build system to outputcompile_commands.json.

GDB

For debugging interactive scenarios that don't have tests yet you can usegdbserver:

gdbserver :2345 ./kak; reset

(If Kakoune crashes, it might not be able to reset terminal modes. Thereset takes care of that.)

Then, connect togdbserver from another terminal

gdb -ex 'target remote :2345'

Since this is a remote target, gdbserver will by default fail to pick up pretty printers (for both stdlib and Kakoune types).To fix this, add this to your~/.gdbinit (or tosrc/.gdbinit):

    set sysroot
Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp