Recent update: 2008-3-21
I need to attach different debuggers (each one is a different process) to a different target thread in the same process. I have built a prototipe that attaches to a thread after that I try to attach mcordbg to the same process and failed to do that. That's the meaning of the sentence: "I'm ...
There dosen't seem to be a very handy way of Getting and Setting the Value of the MDbgValue Here is some code I use to Get the Value Private Function ExtractValueType(ByVal val As MDbgValue) As String 'This is a bit of a hack to get the value out. 'because mdbg doesn't seem to provide a ...
Hello, If I have a process with several threads, ?can mdbgeng or a tool using ICorXX API step code in different threads at the same time and independently? I have tried StepOver in that case but the non-active threads of the process run when I step on the active thread. I'm interested on a ...
Hi guys,please ,can some one help me with NUnit.Assert.AreEqual(10,5,"Some message")The above line of code will result in fail and displaying a message on the GUI of NUnit. IS THERE any way to capture that message and instead of displaying that on to the NUnit gui...or in addition to ...
Hi everyone,I would like to experiment with and learn about ICorProfilerCallback2 using the express edition(s) and/or the platform sdk. Can this be done and, if so, are there any "getting started" guides?My c++ skills are very rusty, so I would prefer to work in c#, but am I correct in thinking ...
Hi,Do I have to free the memory, where the method body have been located after SetIlFunctionBody?I have the Profiler that rewrites the body of some methods. Earlier I've freed the old method bodies' memory using code: CComPtr<IMalloc> pDealloc = NULL;CHECK_COM(ecatLocal, CoGetMalloc(1, ...
411 byte By
eran at 2008-2-27
Hello,I would like to catch all the excpetions in my application (handled + unhandled excpetion) and write to to a trace i have. The catching should be in-process (from the executable code).I know how catch the unhandled exceptions (registering to the event in the appDomain). What i need to ...
How do I call a win32 API function from assembly language? Basically I need to call functions from kernel32.dll from assembly language.
702 byte By
Neo_ms at 2008-2-25
Hi,Supose we have a method named method1. If we run our app in debug mode, we can stop at a brake point and than chagne some code and continue to run the app. Is there a way to do it using code? When I searched I only found useful Reflection.Emit namespace yet it can only build dynamic things, ...
Hello, Is there any way to look at what is being sent/received over the network by an application? I am building a web service and it's client, and I would like to see exactly what they are sending and receiving over the wire with something outside of visual studio. Thanks a lot
What's the best way to identify a managed exe or dll so one knows what debugging interface to use. Thanks. - Dan.
479 byte By
shehan at 2008-2-22
Hi All,I'm getting the following message when I try to attach to a process:"Can't debug a version 1 CLR process ("v1.1.4322"). Run application in a version 2 CLR, or use a version 1 debugger instead."If it helps...The process/application I want to attach to was developed ...
702 byte By
Neo_ms at 2008-2-22
Hi,Supose we have a method named method1. If we run our app in debug mode, we can stop at a brake point and than chagne some code and continue to run the app. Is there a way to do it using code? When I searched I only found useful Reflection.Emit namespace yet it can only build dynamic things, ...
After I get an ICorDebugInterface can I open more than one debugging session, each in a different thread, with it? Or do I need an interface pointer for each session. - Dan.
HI,Recently I started Visual Studio.NET under an account that was not the member of "Debugger Users" and it didn't work. It's Visual Studio.NET feature or a requirement for debugging managed/unmanaged code under Windows ? Requires ICorDebug to be run under "Debugger Users" ...
I'm working on a debugger using the ICorDebug interfaces. I'vem only just started and I'm trying to get a proof of concept for my boss. I'm able to launch or attach to managed apps and I'm getting all the proper DebugManagedCallback calls for attach, create process, load module, etc.Things ...
BTW, why does the DLL names starts with mscor. Core?
>What if you did stop inside the runtime?>What if we did allow a debugger to stop at a native breakpoint inside the runtime, but just refused to execute the helper-thread and thus >temporarily disable managed-debugging functionality? In theory, this would work. In practice, it would be ...
2364 byte By
Alan4s at 2008-2-18
I'm trying to use the CLRProfiler to profile an ASP.Net application. Somehow, it's gotten into a state where it crashes aspnet_wp. Running the same app without profiling works fine. The event log entries when it crashes are:Event Type: ErrorEvent Source: .NET Runtime 2.0 Error ReportingEvent ...
Hi --I'm about to reread the Geoff Schilling/Dave Stutz book -- which, now that I know what I need to learn from it, will be much more meaningful and useful to me than when I read it the first time, But before I do I thought I would ask one basic question that you guys might be able to inform ...
453 byte By
MC8005 at 2008-2-16
I obfuscated my Pocket PC application. I do not use reflection and couldn't find an reason in the documentation why this should not work. I run the app and the main grid doesn't even fill. So then I tried turning it off for forms, but it ignores me and obfuscates everything anyway.There is no ...
589 byte By
KaMePL at 2008-2-15
hello there,I'm not sure if this forum the most appropriate place to ask this question, but i'll try...I need to write simple console application in ILAsm as a part of my diploma and I hardly understand why below code works (compiles and executes in ilasm):ldstr "Enter a"call void ...
hi, when i try to open a system dll "sfc.dll" in the reflector tool, then it does not get opened in the reflector. it shows an error "sfc.dll does not contain a CLI header" can anybody tell the cause for this and resolve the issue? regards, divya
Hi all, I run NCover to get coverage results from my .Net assemblies. In somecircumstances I get no coverage information. After some investigationsI found that NCover uses the profiler callback and the shutdowncallback is not called in this case. Which circumstances may lead the CLR not to fire ...
Hi all, I run NCover to get coverage results from my .Net assemblies. In somecircumstances I get no coverage information. After some investigationsI found that NCover uses the profiler callback and the shutdowncallback is not called in this case. Which circumstances may lead the CLR not to fire ...
Does anyone know what does the COM error code 0x8013134b stand for? I get this when I try to attach to an running managed process by calling ICorDebug::DebugActiveProcess().
2364 byte By
Alan4s at 2008-2-14
I'm trying to use the CLRProfiler to profile an ASP.Net application. Somehow, it's gotten into a state where it crashes aspnet_wp. Running the same app without profiling works fine. The event log entries when it crashes are:Event Type: ErrorEvent Source: .NET Runtime 2.0 Error ReportingEvent ...
334 byte By
Kalees at 2008-2-14
Hi All,I need to send a email with the html controls like textboxes and dropdowns with predefined values from the sql server database and get back the changes which are made by the email receiver and store it into the database.How can I acheive this? Could anyone help me please?Thanks,Kaleeskaleeswa...
hi, when i try to deploy my application with the octopus tool on vista, it gives me an error on the prerequisite check that "access for the "octopus.test.file.bin" is denied". unable to resolve the problem... can anybody help me out? regards, divya
hi, when i try to open a system dll "sfc.dll" in the reflector tool, then it does not get opened in the reflector. it shows an error "sfc.dll does not contain a CLI header" can anybody tell the cause for this and resolve the issue? regards, divya
Is there any way to do this (from add-in or macro)?
Just want to make sure I understand for what things I need to get tokens and insert them into the byte code stream I am generating. I believe it is anything that is referenced in the byte code stream that would have a metadata token associated with it. Working from the overloads for the ...
Hi,I'm trying to figure out how the Mdbg sample works so i tried to create a simple debugger handling breakpoints.So this is a sample of my code: public void Start(Projet proj) { _debuggerMdbg = new MDbgEngine(); _debuggerMdbg.Options.CreateProcessWithNewConsole = true; //Fire event ...
The CLR debugging services team has released an updated mdbg sample. You can find it here: http://www.microsoft.com/downloads/details.aspx?FamilyID=38449a42-6b7a-4e28-80ce-c55645ab1310&DisplayLang=en. A big thanks to the folks on the team who helped get this release together.Updates in this ...
This would be exceedingly useful since the byte code generation I am doing I would like to continue to do in an unmanaged envrionment with the framework I already have in place. Thanks for any assistance anyone can provide.
I am wondering if there is any way to emit a method and its supporting metadata without having to create a full-fledged assembly? I want to be able to emit individual methods on the fly and feel that it's rather heavy handed to create a whole assembly just for one method. What I would ideally ...
Hi all, I'm developing a designer.I want to use CodeCompileUnit to produce a method code,then increases these code to the code file appropriate position(Looks like the dissimilarity which in vs does),ask how I should do? Also or generates CodeCompileUnit by code file,how does that do? ...
554 byte By
bVJk at 2008-2-7
Hello everybody, We are working on a web based application for a call center, my task is to develop a page that displays the incoming phone number on an agents computer. They have a Avaya phone setup installed here. After reading a few documents I learned that the Avaya has some software that ...
Hi,given the following snippet:class GC <V> { public V f1; public GC( V x) { this.f1 = x; } public void p(V v) { V v2 =v; System.Console.WriteLine(" f1 " + this.f1 + " v " + v + " v2 " +v2 ); } }class App { static void Main() { GC<int> x1 = new ...
Is there something special I need to do, in order to set a breakpoint and step through a custom attribute?I have a class like this: public class SecureClass { [ApplicationPermission(SecurityAction.Demand, CustomPermissions.UserAccessPermission)] [MyTest] public bool WasSuccessful() { return ...
You might have noticed the change to the name and description of this forum. We’ve expanded its scope from debugging/mdbg to general managed-code tool development. This includes debuggers, profilers, IL compilers, obfuscators, health monitors etc. We appreciate the participation so far ...
when click X or other exit entry, OS asks user to report error to MS, I can't find any error, when use windbg, it report: Unknown exception - code c0020001 (first chance) Does anybody have the same problem and solve this problem?
Hello Mike,I have the same problem, but my situation does not involve multiple threads. I have written my own debug trace listener, so that I can display my own "Assert Failed" dialog. If I hit a breakpoint and examine a variable, the code being executed by the funceval sometimes ...
when click X or other exit entry, OS asks user to report error to MS, I can't find any error, when use windbg, it report: Unknown exception - code c0020001 (first chance) Does anybody have the same problem and solve this problem?
Hi all,When I need to ajust unhandled-exception debugger behaviour on Microsoft Windows Server 2000 (2003), I realize that there is no such key as HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgJITDebugLaunchSettingSo the question is - where is the analogous of parameter at the Sever ...
232 byte By
acedog at 2008-2-4
Can I specify mdbg as the Debugger in HKLM/Microsoft/Windows NT/Current Version/Image File Execution Options/debugee_name and get the debugee to start with mdgb attached? This is useful for debugging services when they start.
<p style="margin-bottom:0cm"> <p style="margin-bottom:0cm">What happens if the debugger is doing something and the debugee is suddenly killed by task manager? I am trying to ensure that my debugger does not crash when this happens. What errors should I expect?
It would be cool if there were a visualization of the il VM stack.
Hi,Is there any straightforward way to connect the type tree obtained fromicdilframe2::enumeratetypeparameters for the frame of a method on a generic class to the corresponding typespec entry for the class instance on which the method is being invoked? The typespec token can, at least in some ...
Hello,sometimes calling the method ICorDebugController::Stop NEVER terminates nor returns S_TIMEOUT or something like that. It returns only if I terminate process manually by Task Manager.A time ago I was not able to stop my application in Visual Studio. After a minute, VS shows a form ...