Questions tagged [mdbg]

MDbg is a .NET Framework Command-Line Debugger for managed code.

MDbg is a .NET Framework Command-Line Debugger for managed code. It's part of the debugging tools for .NET.

Resources:

34 questions
2
votes
1 answer

Reading objects from memory with MDbgEng

I wanted to help out @mark in a question where he is asking for an API to dump many objects from a .NET crash dump file. So I wrote the following code using mdbgeng, but unfortunately it fails with a NotImplementedException when trying to enumerate…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
2
votes
1 answer

Can you see the evaluation stack in mdbg?

Say I have the following CIL: ldc.i4 40 <- a breakpoint is set here ldc.i4.2 add box int32 call void [mscorlib]System.Console::WriteLine(string) I then use ilasm /debug main.il to assemble the exe and pdb files to use in mdbg. My question is, when…
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
1
vote
0 answers

MDbgProcess WaitHandle not receiving signals from w3wp

In trying to construct a managed debugger in C#, we are using the code from Microsoft.Samples.Debugging.MdbgEngine. The WaitHandle for our MDbgProcess receives signals from the underlying process just fine for console apps, winform apps, and IIS…
1
vote
1 answer

Cannot bind breakpoint with MDbg (always unbound and ineffective)

I cannot set any working (not unbound) breakpoints with command line MDbg (.Net Managed Code Debugger) with C# modules compiled with csc on command line as well under Windows 10. I spent an entire day trying to figure out how to fix this to…
Djee
  • 429
  • 3
  • 9
1
vote
1 answer

Does mdbg support conditional breakpoints?

I am debugging a "Hello World" program written in C# using mdgb, but it seems gdb-style conditional breakpoints failed to set in mdbg, e.g. [p#:0, t#:0] mdbg> when 1 sum>100 Error: Invalid command syntax This is when related syntax, but i…
hugemeow
  • 7,777
  • 13
  • 50
  • 63
0
votes
1 answer

How to Debug a WPF NET Application in order to detect locks, etc

I have a WPF MVVM desktop application in NET 3.5. This application has a combobox in its main window. This comobobx is bound to a view model property. When application is lauched for first time, this combobox is populated. When an item is selected…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
0 answers

MDbg / ICorDebug: What is "OnExceptionInCallback"?

I'm using an MDbg to write a custom debugger to debug an ExcelDna-based C# AddIn in Excel. In other words, I'm loading an Excel AddIn in Excel, and attach my custom MDbg-based debugger to Excel afterwards. Earlier today, the CorProcess (-> Excel)…
Bogey
  • 4,926
  • 4
  • 32
  • 57
0
votes
1 answer

How to convert pdb file to xml using mdbg?

How to convert PDB file to XML file? I tried the source from below, but it's taking exe as an input. Is there any opensource converter available?
Jaffer Sathick
  • 466
  • 1
  • 10
  • 21
0
votes
0 answers

How to register a managed debugger in VS Integrated Shell

My team currently has a fork of the Iron Python Integrated Shell project where we completely implemented our own custom language using managed C#. Our current implementation does not utilize any debug engine (it uses some hacky alternative) and my…
noodlejs
  • 301
  • 2
  • 8
0
votes
1 answer

How to debug step by step managed code with MDbgEngine

Assuming that I have simple C# console application (code below). I want to debug it step by step using mdbg manager wrapper. using System; namespace TestApplication { class Program { static void Main(string[] args) { …
johnnyno
  • 608
  • 5
  • 13
0
votes
1 answer

Use mdbg to debug simple C code with Windows SDK 7.1

This sounds really simple but I just can't get it to work. I installed the Windows SDK 7.1 and opened the Windows SDK 7.1 Command Prompt. I have a code, test.c, as follows: #include #include void main() { int i; for(i=1;…
Yuxiang Wang
  • 8,095
  • 13
  • 64
  • 95
0
votes
1 answer

managed debugger for obfuscated assembly

I was just wondering if there is any tool (preferably free) out there that I can use to run IL from an obfuscated assembly. I know mdbg could be used for debugging a managed assembly but I am not sure if it could be used when that assembly is…
palm snow
  • 2,392
  • 4
  • 29
  • 49
0
votes
0 answers

what is done by std::locale::final_cleanup and std::locale::__the_classic_locale?

In my application, when i run a job it completes and does not give any core dump or segmentation fault message on console . But when i go to the core directory i can see core dump file is created related to the job performed . I tried to debug that…
Invictus
  • 4,028
  • 10
  • 50
  • 80
0
votes
1 answer

mdb's substitute for gdb's catch throw?

I am not very much expert in gdb and mdb but What i know is that :- `(gdb) catch throw` This will interrupt anytime an exception is thrown Do i have any similar command in mdb which will interrupt anytime an exception is thrown?
Invictus
  • 4,028
  • 10
  • 50
  • 80
0
votes
1 answer

MDBG debugging - how to check value of static variable

I am using MDBG to debug running process, but i don't know how to check a value of static variable. Is there some way to do it? Thanks.
Ondřej Kunc
  • 1,087
  • 9
  • 17