Skip to content

feat: Compiler Guide - Add Vala debug instructions to build system page #223

Description

@colinkiama

Description

Here's some initial info to add:

## Include debugging symbols
When compiling the compiler, append the `--enable-debug` flag to `./autogen.sh` like this:
`./autogen.sh --enable-debug`. 

An alternative method would be to use the `--enable-coverage` flag instead.

This also enables line numbers when generating stacktraces with gdb.

# Enable backtraces for debugging
You can also enable backtraces when debugging with gdb like this:
`G_DEBUG=fatal-criticals gdb --args my_valac_version my_test_program.vala`

When a CRITICAL occus, you'll be able to use `bt` or `bt full` in gdb to retreive a backtrace.

Possible Solutions

No response

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions