Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3982174
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:29:49+00:00 2026-05-20T05:29:49+00:00

My program embeds Mono. Most part of the application are in c++ I wrote.

  • 0

My program embeds Mono. Most part of the application are in c++ I wrote. Sometimes, the application has Mono JIT compile some assemblycode, and that generated code gets executed.

When breaking the debugger while dynamically generated functions are on the callstack, I would like to make the visual studio debugger a bit more useful by displaying descriptive names for these dynamically generated assembly functions.

Is there a way to tell the debugger: “Hey from 0x78f0000 to 0x78f0300 I wrote the assembly implementation for SomeClass::SomeMethodInAHighLevelLanguage()” ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T05:29:50+00:00Added an answer on May 20, 2026 at 5:29 am

    One possibility seems to be Synthetic Symbols if you write your own debug extension

    http://msdn.microsoft.com/en-us/library/ff537943(v=vs.85).aspx

    I tried getting these working with mono in the past, but did not have much luck. I could not get the IDebugSymbols3 interface from the debug engine, but that may have been an error on my part. Assuming you could actually retrieve that interface from a debug extension, the idea is to then register jitted methods via AddSyntheticSymbol.

    Another option may be generating .dbg files from within mono and loading those symbols into the debugger (similar to xdebug for gdb):

    http://www.microsoft.com/msj/0399/hood/hood0399.aspx

    Update

    The following macro will output the mixed callstack of both native and managed symbols from mono to the command windows:

    Imports System
    Imports EnvDTE
    Imports EnvDTE80
    Imports EnvDTE90
    Imports EnvDTE90a
    Imports EnvDTE100
    Imports System.Diagnostics
    
    Public Module Module1
    
        Sub PrintStackTrace()
    
            If DTE.Debugger.CurrentProgram Is Nothing Then
                DTE.StatusBar.Text = "No program is currently being debugged."
                Exit Sub
            End If
    
            For index = 1 To DTE.Debugger.CurrentThread.StackFrames.Count
                Dim frame = DTE.Debugger.CurrentThread.StackFrames.Item(index)
                Try
                    Dim funcAddr = CLng("&h" & frame.FunctionName)
                    Dim statement As String
                    statement = "{,,mono.dll}mono_pmip((void*)" & funcAddr & ")"
                    DTE.Debugger.ExecuteStatement(statement, 100, False)
                Catch E As Exception
                    Dim win = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindCommandWindow)
                    win.Object.OutputString(frame.FunctionName & vbCrLf)
                End Try
            Next
    
        End Sub
    
    End Module
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C application that embeds the Python 2.7 interpreter. At some point
I'm looking at moving a program that currently embeds a Python interpreter to use
I am working on a program by C that some processes need to access
I have a program that embeds Lua and implements a form of lazy function
I have written a small C program that embeds Python. I'm setting it up
In my application I compile another program from source.cs file using CodeDom.Compiler and I
This program I use has it's own variables to set when you run it,
My program needs to know when a user ejects cd disc. Is there some
My program does some network activity in a background thread. Before starting, it pops
I have a program which embeds both python2 and python3 interpreters. The libpython shared

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.