debugging

How is "Make Object ID" implemented in the .NET debugger?

Hi, I would like know how this feature is implemented in VS - I understand it holds some sort of weak-reference to the object in the debugged-application's memory, but how exactly is it accomplished? I know simply tracking the address (as in native code) wouldn't work, because the GC might move the object about, invalidating the addre...

How to view the GDTR's value ?

Hi In the book "Rootkit Arsenal" page 84 (Chapter 3) mentions: ..., we can view the contents of the target machine's descriptor registers using the command with the 0x100 mask: kd> rM 0x100 and a paragraph below: Note that the same task can be accomplished by specifying the GDTR components explicitly: kd> r gdtr .... ...

Is C# Interpreted or Compiled?

I thought that C# generated compiled code (by JIT) But I have lately discovered that I can edit code while debugging mode in C# (VS 2008) Does that means that C# is interpreted? or there is a trick? ...

Scala Eclipse IDE suddenly ignoring breakpoints

I've been using Scala 2.8RC1 and Scala Eclipse plugin for 2.8 RC1 happily for a few days. However, last night after adding a couple jar files to my environment (apache http client jars) the debugger just stopped stopping at breakpoints in scala code. Java code stops fine at breakpoints. I tried creating a new mimimal scala app breakp...

VS2008 C++ MFC Access Violation ONLY when stepping through debug mode

Hi. This is crazy. It started happening in my main project, so I created a tiny sample brand-new project to reproduce it in and sure enough.. It does NOT happen in a sample project I created that is only a Win32 console app. I'm running this on Win7x64, if that matters. VS2008 SP1. Here goes. I create a small dialog app with a button...

Filtering debug messages in VS

I am working on a VC# project which uses the Debug.Writleline command for debugging. I would like to filter out certain debug messages at runtime. I can think of 2 ways to do this: Somehow viewing the debug messages on stdout and redirecting them to grep Using a filter function on the output window (as in netbeans) Is there any way...

Modify static variables while debugging in Eclipse

As an extension the the question "Modify/view static variables while debugging in Eclipse", I'd like to be able to modify static variables while debugging in Eclipse. For instance and local variables, I can just choose the variable in the "Variables" view of Eclipse, and use the context menu "Change value..." to change the value. This ...

Xcode debugging - displaying images

I love using Xcode debugger. You can any time take a look at the variable's values, you can even change them. The problem rises when u are testing images, and here pops up the question: Can I somehow DISPLAY the image that is referenced by the image variable? I know i can see raw bytes of it, but it would be much more human friendly if...

Debug the StackOverFlow exception

When I run my C# program it throws an Stack Overflow exception in one of the methods on a DLL that I have a reference to it in my solution. but no debugging info is available to me because it says it is an stack overflow exception and no info is available. what are the next debugging steps that I should follow to understand what is going...

Cannot attach to a service in VS 2008

I have created a service in VS 2008 called EmailReader. I have compiled, installed and started the service. Its timer loop is writing records to a log file, so I can see that it is running. I am trying to attach to it in VS 2008, but the process name is greyed out in the list of available processes, and the name is "EmailReader.vshost.ex...

vb express / visual studio - is it possible to run / debug one form only in a multi form application?

hi, I have a vb application consisting of several winForms and code files. Is it possible to run / debug only one form without having to run the whole application? To be more specific, one of the forms in my application is the settings form where the user sets his/her desired options. These options are read/written to an xml file. Is i...

"Unable to start debugging on the web server" error message in Visual Studio 2010 and app runs fine without debugging

I get error message "Unable to start debugging on the web server" in Visual Studio 2010 (Windows 7). The app works fine if running without the debugger. I can also manually attach to the aspnet_wp.exe process and have a breakpoint hit in the app. I have debug=true in web.config. Why do I get the error message? ...

Why would Visual Studio 2010 say it can't show a variable during debug?

In Visual Studio 2010 sometimes when I want to get the value of a variable while debugging, it tells me that it "does not exist in this context" when it obviously does. I have found that if I use the variable, as in the screenshot below, then it is able to show it. Has anyone experienced this? Visual Studio 2008 never did this. How ca...

Is there a good way to add Equinox source to Eclipse to help debugging an OSGi bundle?

I am banging my head against a mess of JNI code and DLLs that we are trying to shoehorn into an OSGi bundle. It has been particularly hard to get good debugging info out of the system and I have spent too much time stepping through raw byte code trying to infer what is happening inside equinox--when I really don't care--I am just not ge...

"Debug Assertion" Runtime Error on VS2008?

I'm writing a C++ MFC program on VS2008 and I'm getting this "Debug Assertion Error" when I first run the program sometimes. When I try to debug it, it takes me to this winhand.cpp file which is not part of the program I wrote so I'm not sure how to debug this. It takes the error to this place in winhand.cpp CObject* pTemp = LookupTem...

.NET Debugging Issue

Just wondering if someone could shed some light on a problem I'm having. The think() method is called every 100ms, and i have a few breakpoints set however the first one that gets stopped at isn't the first that should.. It seems to miss stopping on the others. Has anyone seen anything like this before? See screenshot below, the one it i...

GDB not hitting breakpoints, probably because of function pointers. How to set breakpoints in this case?

Hello, I am trying to hit a breakpoint that appears early in the code, but gdb (ddd) misses it each time. At first I thought it was because of templates, but gdb seems to cope with that. I'm guessing the problem is that the choice of which function to execute (here, doit), is only known at execution time ("function pointers"), but judge ...

"One or more breakpoints cannot be set and have been disabled. Execution will stop at the beginning of the program."

I set a breakpoint in my code in Visual-C++, but when I run, I see the error mentioned in the title. I know this question has been asked before on Stack Overflow (http://stackoverflow.com/questions/657470/breakpoints-cannot-be-set-and-have-been-disabled-problem), but none of the answers there fully explained the problem I'm seeing. The ...

how to see complete string or character array in the watch window in vc++ ?

Hi, I am working on Visual Studio 2009. While debugging, I need to see the values of the variables in the watch window of visual studio.By default, it shows only the first character. It's only after I add a "s" or "su"(for unicode) that I see the complete content. Is there any setting in visual studio that I can make, so that this values...

Debugging compiled .NET 2.0 application

I don't know if I'll pass all the necessary information here, but I've only been asked to post this question here and I'm not entirely onto the matter. There is a .NET Framework 2.0 application compiled in the Debug mode with the parameter jitDebugging set to true in app.config <system.windows.forms jitDebugging="true" /> After any c...