I'm trying to debug some code in the .NET Framework. Unfortunately, many of the variables are optimized away, and I can't reliably set the instruction pointer due to flow optimizations.
Is it possible to force the runtime to NOT use the ngen'd versions of the .NET system DLL's, but instead use the MSIL, forcing optimization to 'off'?
N...
Ok, what i have:
Visual Studio 2010 RC, W7 x64, started a new project type of Silverlight application. Hosting the Silverlight application in a ASP.NET Web Application Project. Silverlight Version 3.0.
Added a LinqToSQL Class, a WCF Service, a Winform Tester Application (Project in the Solution) and a few Classes (also as Projects in t...
I was testing a program I am writing and I got this error message: Cross-thread operation not valid: Control 'lblStatus' accessed from a thread other than the thread it was created on
The code is a bit massive and I am not sure which part is causing this error to post a smaller segment. However here is some info that might be of use.
I...
I have a C code similar to:
int f() {
for (int i = 0; i < 100; i++) {
scanf flag;
if(flag)
scanf data1;
scanf data2;
}
}
I want to break the execution only when flag == 0. How should I set the breakpoint (using gdb)?
...
I'm using Visual Studio C++ 2008 Express Edition.
Is it possible to modify the text in the Output pane for compilation (or other) errors?
For example, I might receive an error that reads: error C2556: int Class::getResult(void) + a lot more relative garbage.
I can parse the output text and find and fix my mistakes easily. It would st...
I noticed in the django documentation that when DEBUG is False it will mail your configured ADMINS the full exception information.
Is there an easy way to dump the full exception information this to a file?
...
I'm sort of new to developing Asp.net webapplication projects while running them on a local IIS. Till now I used the 'Use Visual Studio Development Server' option.
I'm using Visual Studio 2010 Beta 2.
Edit: less complex sample code
Following code sample:
List<string> _list = new List<string>();
_list.Add("asd");
...
I have downloaded a sample mvc application which has a fair bit of code and quite complex. in order to understand the code i want to step through all of the code line by line as i complete basic functions via the gui. problem is i am not always sure which line the code executes from so i cannot always set a breakpoint.
is there a way to...
Is there a way to have breakpoints hit when the action is caused by the Visual Studio debugger?
For example, let's say I have the following (I know you shouldn't do this, just using it for argument's sake):
public class Test
{
int _X = -1;
public int X {
get { return ++_X; } //Breakpoint here
set { _X = value; }...
I am trying to move our projects over to use MonoDevelop, as we have been having a very bad experience with Visual Studio. Anyways, when ever we go to debug an application, we get a TargetInvocationException and asked to Ignore, Retry, Abort. Clicking anything other than abort just re-throws the exception and on clicking abort forces Mo...
Under linux, can I use GDB to debug a process that is currently running?
...
Question:
Is it possible to debug, when the target is on a remote host?
Example:
# ddd --debugger /usr/bin/bashdb <sript-name> (on remote host)
...
hi,
we are doing some java stress runs (involving network IO). Initially things are all fine and the system responds very fast (avg latency in test 2ms). But hours later when i redo the same test i observe the performace goes down (20 - 60ms). Its the same Jar files, same JVM, and the same LAN over which the stress is runnig. i am not ...
Years ago I had a little #define which I used in Borland C++ Builder. From memory, it was something approximately like
#define BREAK_IF_DEBUGGING asm(0xA3);
or something like that. It relied on 0XA3 (or whatever it was) being the op code for the interrupt which Borland were using to trigger a breakpoint.
Can I do the same thing in...
Hello SO:
I am attempting to debug a website on Windows XP. To be more specific, I am trying to debug an install of SiteFinity CMS. This CMS was installed via Microsoft's Web Platform Installer. It was installed to the default location of C:\Inetput\wwwroot.
The first error I got when attempting to debug the website with VS2008 was rel...
I'm currently trying to reproduce a bug that I think is caused by thread synchronization error.
Sadly the bug does only occurred on the customer site but not on my development machine.
Since those threads involve HDD access that is extremely slow at the customer site (about 1 MB/s) I think that the reason why I can't reproduce the bug ...
I'm working on a project that involves Raphaeljs. Turns out, it doesn't work on Android. It does on the iPhone.
How the heck to I go about debugging something on the Android browser? It's WebKit, so if I know the version, will debugging it on that full version of WebKit produce the same results?
...
I'm attempting to build a suffix tree in C++ as part of an assignment on gene sequencing
void Tree::insert(string ins)
{
Node* iterator = chooseBranch(root, ins.at(0));
string temp;
for(int i=0; i<100; i++)
{
if(iterator->data=="")
.
.
.
chooseBranch() is a function to pick which of 4 children to go to, a...
Hello, My server daemon works fine on most machines however on one I am getting:
malloc.c:3074: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1)
- 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) ||
((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct
mall...
My Visual Studio 2008 debugger is showing integers as hexadecimals, how to correct that?
...