debugging

Debugging Silverlight crash

I am trying to debug an IE 8 crash caused by a Silverlight application. I managed to find some articles on how to do a memory dump when a process crashes. I loaded the dump in windbg and ran !analyze -v. Below is the result. I am stuck at what further steps I can take to figure out what module or library that is running in Silverlight is...

can't step into c++ program pixel city in netbeans on ubuntu

I'm using NetBeans 6.7 on Ubuntu, and I downloaded a linux port of shamus young's pixel city, http://github.com/BryanKadzban/pixelcity/tree/master but I can't step into it (it compiles and builds and runs fine (a little slow but fine)). I can step into a c++ sample project in netbeans which seems to mean that gdb is working properly. ...

What are your favorite debugging techniques in C++?

There are printfs, asserts, edit and continue, logging frameworks? Whats your favorite poison? ...

Delphi debugger showing ???? for Currency variables

I'm trying to see the value of a variable, but the debugger shows me a value of "????". This seems to happen to Currency variables, but not other types (Double and enumerated types are ok). I'm debugging on Windows XP SP 3 using Delphi 10 Update 2. The process I'm using is: Build the project in the BDS IDE. Copy the exe to the direct...

Inspecting java class instance variable values in Eclipse

In an application, I have a class with a few member variables and methods. Calling the method with bad parameters produces a AssertionError. I've setup the debugger to halt on uncaught exceptions. Problem is, when switching over to the debug perspective, I can only see the class instance (on which the function was called) and the two pa...

Background Tasks in ASP.NET / Debug

I have a task that is not important ; it should be run once in while if the website is used. So I tried this approach : http://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/ The task could be long so I want it to be asynchronous... so that the navigation is not stopped by the background task. The thing I don't unders...

include line numbers in stack trace without pdb?

We are currently distributing a WinForms app without .pdb files to conserve space on client machines and download bandwidth. When we get stack traces, we are getting method names but not line numbers. Is there any way to get the line numbers without resorting to distributing the .pdb files? ...

debugging ASP.NET with visual studios like winform

When my code throws an error i like being brought to the line with the exception and look at all the variables with the call stack on hand. When i debug ASP.NET when an exception is thrown i dont have the visual studios IDE showing me the line and all that. How do make visual studios debug this like a normal C# winform app? NOTE: I dont...

Weird PHP behavior: won't assign the integer 8 to a variable

I think I just encountered the strangest 'bug' I've ever encountered in my short developer life. It seems like I just can't assign the value eight to any variable. For exemple: <?php $seven = 07; $eight = 08; //what's wrong here? $sevenB = 7; $eightB = 8; echo $seven; echo $eight; echo $sevenB; echo $eightB; ?> The output is: 7078 ...

help with gdb traces (or similar)

I have an application. I have the source code (in C). I can compile it anyway I want. Add whatever tool I want to it. Etc. However, I do not want to pepper the source code with a bunch of printf's. I want to be able to produce a log of some sort that shows when a particular value (some member of a global structure for example) is written...

ARM: what are available executable binary formats and emulators?

For fun, I'm working on a compiler for a small language, and I'm targeting the ARM instruction set first due to its ease. Currently, I'm able to compile the code so I have ARM machine code for the body of each method. At this point I need to start tying a few things together: What format should I persist my machine code to so I can... ...

Debugging shell extension in Windows 7

Hello. I'm trying to debug shell extension (IContextMenu) in Windows 7 with Visual C++ 2008. I have set DesktopProcess=1 in the registry and set host app to explorer.exe. But when I start the debugger, it launches explorer.exe and then detaches from the process. DllMain of the shell extension isn't called. The same code with exactly th...

Changes not allowed when unmanaged debugging is enabled?

I get the error changes not allowed when unmanaged debugging is enabled Actually I get the below message but Google doesn't return many results changes are not allowed when unmanaged debugging is enabled What does this mean? How do I fix it? Note this is an ASP.NET project. Checkmarking Edit and Continue does not make this e...

Netbeans 6.5 debug issue

I am debugging the following lines of code if (var.getvar2() != var3) { var4.add(var); } else { isNeeded= true; if (incomingPublishedDate.compare(modifiedDate) < 0) { importNeeded = true; } else { var4.add(var); } } Here var.getvar2() a...

Output a watched Visual Studio variable to a file

Is there a way in Visual Studio (2008 if it matters) that I can, in debug/break mode, write the contents of a variable to a text/XML file? The scenario is that I have a long process running in debug and I have realised too late that I haven't logged enough detail about the events that the process has been monitoring, but fortunately a ...

Unable to debug application VS2008 blackberry Plug-in

I am using blackberry plug in for Visual Studio 2008. I have created a "Hello World" application but I am not able to debug at any point. I have set the breakpoints every where right from function main{} inside Program.mds. When I hit f5 i.e. run a program, an instance of Black Berry 8310(4.5) simulator opens and when I tries to perform ...

Why is it more costly to discover a defect later in the process?

Why is it more costly to discover a defect later in the process? I've heard this a lot but I struggle to understand and put context/examples to this. ...

Debugging Visual Studio builds from Eclipse

I'm just starting out on a cross-platform (Windows, Linux, OS X) C++ project, and we've decided to use Scons for our build system and Eclipse as our IDE. I've figured out how to trigger Scons to do a Visual C++ build from Eclipse, and for errors etc. to get reflected in Eclipse, so all good so far. However, what would be really nice is i...

Directing IntelliJ to sources when debugging an external application

Say you have the source of an application, and you're debugging the jar via JMX. How do you tell IntelliJ where the source is? ...

How to view a DataTable while debuging

I'm just getting started using ADO.NET and DataSets and DataTables. One problem I'm having is it seems pretty hard to tell what values are in the data table when trying to debug. What are some of the easiest ways of quickly seeing what values have been saved in a DataTable? Is there someway to see the contents in Visual Studio while deb...