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 6234005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:24:17+00:00 2026-05-24T10:24:17+00:00

I want to run the Visual Studio debugger on a .Net program that has

  • 0

I want to run the Visual Studio debugger on a .Net program that has been obfuscated. (It’s my own program – I’m not trying to crack someone else’s program.)

When I compile the program with “System.Diagnostics.Debugger.Break()”, or if I attach the debugger to the running process, then the debugger shows “No Source Available”. This I understand – there is no source that corresponds to the obfuscated version of the program. But when I click “Show Disassembly” it shows a Disassembly window with “No disassembly available.”

Why? Any suggestions as to what I can do to get the disassembly to work?

Under Debug Options I do have “Enable address-level debugging” and “Show disassembly if source is not available” checked.

Thanks.

EDIT

Just to try to explain a bit more …

The program in question is my own program, and the obfuscation program being used is also my own program. The obfuscation program runs ILDAsm.exe, modifies the ILAsm code, and runs ILAsm.exe.

My obfuscation is apparently introducing problems so the program no longer works correctly. To understand how/why it isn’t working I’d like to trace it. But for some reason Visual Studio debugger says “No disassembly available”, and then I can’t do anything at all. (When the non-obfuscated program is run under Visual Studio the Disassembly window can be opened and shows the expected information. It’s only the obfuscated version that produces this problem with VS debugger.)

EDIT 2

Haven’t been able to find an answer to my question, but I do have a sort of workaround now.

I’ve installed WinDbg and confirmed that it can attach to my obfuscated program and can at least single-step it and show the current execution location in a disassembly window. But I’ve never used WinDbg before, and it looks a bit daunting.

I’ve also followed the advice seen several places to load sos.dll into WinDbg. Maybe that will help.

But I’m guessing that what I’ll actually end up doing is throwing lots of temporary logging statements into my program around the places where it’s not working, and hopefully gain some understanding that way.

  • 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-24T10:24:18+00:00Added an answer on May 24, 2026 at 10:24 am

    OK, I happened to stumble on what I was doing wrong.

    As I mention in the first edit of my question, my obfuscation is being done by running ILDAsm.exe, modifying the ILAsm statements, and then running ILAsm.exe. It turns out I was missing the /Debug option on the ILAsm.exe run. So even though my Visual Studio builds were Debug builds, the JIT conversions at run time were Release/Optimize conversions.

    With /Debug specified on ILAsm.exe I’m getting a PDB file, and when Visual Studio debugger connects to my program I’m getting IL source code display and, if I request it, disassembly display too! So now all is well!

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

Sidebar

Related Questions

I currently run Visual Studio 2008 SP1 connecting to Team Foundation Server. I want
I have developed an ASP.NET web application in visual studio 2008. I want to
I am using CMake to generate Visual Studio project files. I want to run
when I run the following example with the debugger in Visual Studio 2010 (using
I want to run my application through azure project in Visual Studio. But it
Have you ever been frustrated by Visual Studio not re-evaluating certain watch expressions when
I have created a website using visual studio 2008. Now i want to run
I want run a script as follows: runner: ssh 'java program &' ssh 'java
I want to run a weekly batch process in an asp.net page. How can
I want to run javascript/Python/Ruby inside my application. I have an application that creates

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.