Skip to content

Commit

Permalink
Extend possible debugging fixes with file-name-only
Browse files Browse the repository at this point in the history
  • Loading branch information
l0rinc committed Oct 29, 2024
1 parent cb7c5ca commit 1b0b9b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/developer-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ If you have ccache enabled, absolute paths are stripped from debug information
with the `-fdebug-prefix-map` and `-fmacro-prefix-map` options (if supported by the
compiler). This might break source file detection in case you move binaries
after compilation, debug from the directory other than the project root or use
an IDE that only supports absolute paths for debugging.
an IDE that only supports absolute paths for debugging (e.g. it won't stop at breakpoints).

There are a few possible fixes:

Expand All @@ -392,6 +392,8 @@ ln -s /path/to/project/root/src src

3. Use `debugedit` to modify debug information in the binary.

4. If your IDE has an option for this, change your breakpoints to use the file name only.

### `debug.log`

If the code is behaving strangely, take a look in the `debug.log` file in the data directory;
Expand Down

0 comments on commit 1b0b9b4

Please sign in to comment.