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

  • Home
  • SEARCH
  • 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 1078829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:46:53+00:00 2026-05-16T21:46:53+00:00

Given an assembly and its pdb, how do I get the line number and

  • 0

Given an assembly and its pdb, how do I get the line number and path to a method using .Net?

  • 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-16T21:46:53+00:00Added an answer on May 16, 2026 at 9:46 pm

    You will need to use the DIA SDK. Microsoft does not have a managed interface for it, but using DIA in C# has been asked on StackOverflow before.

    If you are going to try it out in native first you can get the information in question by getting the IDiaSymbol instance for the PDB in question, this is called the ‘global scope’. Once you have that you will call findChildren() passing it the SymTagFunction enumeration which of type SymTagEnum. You will then need to enumerate over them and use an IDiaSession, previously made to get the global IDiaSymbol, instance to find the correct source and line number.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A website I'm working on is using a third-party assembly, let's say A.dll. This
I would like to run a third party .NET assembly on my API. I
I've written a small assembly snippet (Gas, 32 bit) that takes a command-line argument,
I have a VS Add-In that's using a BinaryFormatter to deserialize an object. To
I have a little mess with a web application. I works in the development
This Circular Navigation solution from The link : http://create.msdn.com/en-us/education/catalog/article/nln-serv-wp7 To implement this given-solution ,
I am writing a problem to solve Job schedules but I am having a
I have a solution consisting of a main winforms app, with associated internally written
I am having trouble with FxCop warning CA1006 , Microsoft.Design DoNotNestGenericTypesInMemberSignatures. Specifically, I am
I'm writing a web framework, and I'm implementing some custom attributes. I want to

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.