Skip to content

Enable mono debug information #820

@takumn

Description

@takumn

Environment

  • Pythonnet version: 2.2.2
  • Python version: 3.6.1
  • Operating System: macOS/Linux

Details

I want to get source files and line numbers partially from stack traces when exceptions occur inside monoclr, but currently it shows only<filename unknown> :0.

https://gist.github.com/jpcy/8646147#correct-source-files-and-line-numbers

According to this gist, mono_debug_init(MONO_DEBUG_FORMAT_MONO); seems to work, so I tried the patch like this:
takumn@2293744

It actually worked for DLL files compiled with /debug flag. Is it possible to extend PyNet_Init function for enabling mono debug information?

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