debugging

Sql 2008 Debugging from Management Studio

How do i attach debugger to Sql 2008 Express edition from Management Studio? ...

Unwanted breakpoints in Visual Studio debugger

I check out my projects from SVN and usually have a couple of projects in my solution while debugging . sometimes when I set breakpoints in my program to debug it, the program breaks at other points that I have Not set any break point in there at all ! but there is a break point in there? How is it happening? does VS keep its breakpoints...

How do I invoke an F# function from the VS2010 immediate window

While debugging an F# application, I would like to be able to invoke an F# method from the VS2010 immediate window but it doesn't seem to work. The problem appears to be that F# methods are actually FSharpFunc objects. I tried using the "Invoke" method but the interactive window doesn't recognize it. ...

iPhone Debugging: Get a black screen when debugging a universal app

I am working on my universal app (4.0.1 sdk) and I am unable to get it to run on an iPod touch. It works on iPad, and on both the iPad Simulator and the iPod simulator When I try to launch the app on the touch, my main gets called and I can stop at a break point (I assume this means the provisioning and certs are right) but nothing after...

electric-fence with pthread

I'm working on a multithreaded (pthread based) project. The project uses a library that I'm writing. In order to check it I linked it with -lefence and it gave me SIGSEGV. After a lot of time spent in figuring out what's wrong, I finally decided to search the error on the library, even if it's functionality is extremely simple. As test...

sitecore 6 debugging with visual studio 2008

Hi, I'm trying to debug sitecore 6 asp.net code using visual studio 2008 (Windows server 2003 OS), concretely i am trying to get breakpoints to work. I tried setting the breakpoint and then on VS, debug-> attach to process.. -> IIS web server process, but nothing happens when i browse to a certain aspx where a breakpoint is located at t...

Silverlight f5 debugging error

I am attempting to create a simple silverlight 4 application in visual studio 2010 ultimate running on windows 7 x64 and I am unable to use f5 debugging. The error is: Unable to start debugging. A fatal error occurred. For more details, please see the Microsoft Help and Support web site. HRESULT=0x8004005. In researchi...

Different property values on two references to the same object (C#)

I am trying to track down a very elusive bug in an application that manipulates a FlowDocument. I have shown below three consecutive lines of debugging code, together with their output: Debug.Assert(ReferenceEquals(document1, document2)); Debug.WriteLine(document1.Blocks.Count); // 1 Debug.WriteLine(document2.Blocks.Count); // 3 Can a...

How to avoid the "swapping of death" during development?

Probably everyone ran into this problem at least once during development: while(/*some condition here that somehow never will be false*/) { ... yourvector.push_back(new SomeType()); ... } As you see the program starts to drain all system memory, your program hangs and your system starts to swap like crazy. If you don't rec...

How to get rid of "unsafe" warnings (strcpy, sprintf, strdup)

I'm trying to get rid of some compiler warnings that say strcpy, sprintf, etc are unsafe. I get why they're unsafe, but I can't think of a good way to fix the code, in a C++ style. Here's a excerpt of the code: extList->names[i]=(char *)malloc(length*sizeof(char)); strcpy(extList->names[i],extName); // unsafe // str...

Link Console with source code in Eclipse

I have a J2Me project, that throws exceptions, in other projects (J2Se projects) I'm used to press on the exception link in the console in Eclipse, and it would take me straight to the source line, for some reason, in the J2Me project this does not happen. Any idea on how to fix this? Adam. ...

Xcode/GDB: How to get information about an exception that was just thrown?

OK, so imagine that my breakpoint in objc_exception_throw has just triggered. I'm sitting at the debugger prompt, and I want to get some more information about the exception object. Where do I find it? ...

Error : Not all products are available in the requested quantity !! what does this mean?

Hello , i get this error when trying to submit the order in the shopping cart : Not all products are available in the requested quantity I have set the quantity to 1000 and made it in stock ... I have just installed magento and some other extensions , , so what i did wrong ,, ...

Problems debugging a PowerShell cmdlet

I'm using Visual Studio 2010 on Windows 7 64-bit Professional. I'm having trouble debugging a custom PowerShell cmdlet. Configuration Language: C#, targeting .NET Framework 3.5 SP1. Platform target: Any CPU Start Action: C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe Command line arguments: -noexit -command Add-PSSnapIn MyC...

How to debug javascript?

Hi ! I have some old javascript code from around 2000-2002 which (surprisingly) still works in IE, but doesn't in Firefox, Chrome, Opera etc. I already found out about some quirks, some browsers do some things this way, some another. So there are code snippets on the internet to create some browser plattform independent function that do...

Visual studio to gcc, code compiles well in gcc but gives std::badalloc error at runtime

I have a big code that uses only standard C++ libs and compiles well in gcc. As the code was actually written in VS C++ 6.0. The code runs fine in visual studio but when I use gcc compiler it gives no errors on compilation and when I run it it gives this error "terminate called after throwing an exception at instance std::bad_alloc what...

Accessing VS2010 Debug mode on another computer (on the network)

I need to debug in IE6 (failed at getting the standalone installs to work) so I want to be able to access my debug mode from another computer (which has IE6 installed) and that way I will be able to fix bugs much easier. Im sure this is possible so please help its pretty urgent thanks :) ...

Is it OK to have a single configuration, rather than separating Debug and Release (in our case)?

We develop a product for internal customers. We don't have a QA team, and don't use assertions. Performance is important, application size isn't. Is it a good idea to have a single configuration (instead of separating Debug and Release), which will have the debug information (pdbs), and will also do the performance optimization? Are th...

VB6 and Com debug issues after XP Service Pack 3 install

My company recently upgraded our PCs to XP service pack 3. We still have some vb6 apps that connect to an EJB server via a JCOM bridge. These apps still work as compiled exes but i noticed that during debugging the IDE hangs when it tries to create a JCOM object. I suspected it was as a result of the XP upgrade and was able to confirm t...

In GDB, how to find out who malloc'ed an address on the heap?

I have a pointer in GDB, how can I find out where it was first allocated on the heap? In WinDBG, this can be done by !heap -p -a <0x12345678> after turning on gflags /i <*exe> +ust Since Valgrind can tell me where the memory is allocated (when it detects some leaks), I guess this is also possible? (This is NOT about watchpoint. This i...