Skip to content

Document PROTON_DUMP_DEBUG_COMMANDS and issues with spaces in proton path #1499

@ah-

Description

@ah-

Hi,

I'm trying to spend some time trying to fix various games for fun, but I'm finding it hard to get a debugger attached early enough to catch launch issues.

Usually the program exits before I can attach to it, so I'm just relying on crashdumps (which are often a bit incomplete and don't have a full/correct stack trace), wine +relay logs and luck.

I just discovered PROTON_DUMP_DEBUG_COMMANDS which looks pretty promising!
However, I don't fully understand yet how winedbg_run and gdb_run are meant to be used.
Just running one of them and starting the program with c seems to not attach gdb/winedbg to the running program, they start, crash, and gdb just tells me that the program exited but doesn't break.
Trying to b main or similar doesn't seem to set breakpoints correctly either.

Do you have any hints how to best go about debugging? What do you usually do?

Sorry if I've missed something obvious, I just figured it'd be easier to just ask.

I've also noticed that winedbg_run sometimes has issues with the space in "Proton 3.7", e.g.:

/tmp/winegdb.iy8qJR:1: Error in sourced command file:
/home/andreas/.local/share/Steam/steamapps/common/Proton: No such file or directory.

Creating a symlink without the space fixes that issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions