debugging

What's the difference between libs under Debug/ and Release/ directory in C?

When I link to the one under Release/ ,got a fatal error: LINK : fatal error LNK1146: no argument specified with option '/machine:' Then I tried to link to the .lib under Debug/ and this time it works. But what can be different? ...

XCode building: identical configurations behave differently

I have a superweird problem: I get a crash (EXC_BAD_ACCESS) when running my app with Release as active configuration on my 3.1.3 iPhone 3G. (works well in debug configuration or in simulator , works perfectly on device running iOS4). My first guess was one setting in the Release configuration was erroneous/missing. In order to test it ...

Intelligent Obj-C variable contents while debugging in Xcode?

In its default (ie, my) configuration, Xcode is somewhat unhelpful in its debugger window for variables, especially those of the common Objective-C collections variety. The debugger seems to usually want to display the underlying Obj-C structure when I expand some object, so I'm looking at isas and the class hierarchy. But what I almo...

VS2010 Debug entry very slow

When I start debugging my web application either from Start with Debugging (F5) or attaching to the ASP.NET worker process it will load the assemblies from the application very slowly that I can individual read the names of them as they scroll through the status bar of VS2010. When I start debugging I see that MSVSMON.exe uses 50% CPU a...

Is it a bad idea to put development shortcuts in #if DEBUG blocks?

In a few places in our code we use #if DEBUG blocks to simplify development. Things like: #if DEBUG serverIP = localhost; #else serverIP = GetSetting() #endif or private bool isLicensed() #if DEBUG return true; #endif return CheckSetting() There are also a few places where we make cosmetic changes like this: #if DEBUG ...

Searching all execution paths of a codebase to see where "Int.TryParse" is called

I have a system which reads strings from the parameters of a GET request, then parses and sends the data along through a very large and complex codebase, which I can't reasonably wrap my head around. These parameters were originally generated from integers at the client, so at it would have been valid to parse these string parameters int...

Visual Web Developer - Breakpoint Symbol Error

Hey guys, Running VWD 2010 Express and trying to debug my file. Getting the error: The breakpoint will not currently be hit. No symbols are loaded for this document. Can't manage to fix it! Any ideas? Thanks ...

Debugging a Makefile

Let me prefice this question with the comment that I know very little about Makefiles or make. There is a very large project that is automatically built nightly. It is built in both Debug and Release mode, Debug being used for utilities like Valgrind to provide code analysis. Somehow, some of the built libraries are losing the debug fla...

Debug COM object using .NET client

I have a legacy COM object written in C++ that I need to debug from a C# client. I just need to step through the C++ code, not the C# code. Is this possible? How does one go about setting this up? ...

Debugging WCF service hosted in IIS 6.0 using Visual Studio 2005

Hello all I've created a WCF service selecting 'WCF Service' in installed web site templates in VS2005. I've added a ASP.Net client for the service in the SAME solution. I published the WCF service in IIS 6.0 and configured it to run in .Net Framework 2.0. I did an IISAPP in command prompt and identified the PID of the w3wp.exe process...

debugging c programs

Programming in a sense is easy. But bugs are something which always makes more trouble. Can anyone help me with good debugging tricks and softwares in c? ...

VS2008 debugger breaks at unwanted line

Visual Studio 2008 breaks at the following line with the following message: I don't want it to stop there, it's making debugging a nightmare. Somehow the exception thrown at line 998 is causing this, even though there is a try...catch block somewhere up there that is supposed to catch this exception. Any ideas on how to stop this from ...

How can I find a rare bug that seems to only occur in release builds?

I have a fairly large solution that occasionally crashes. Sadly, these crashes appear to only occur in release build. When I attach the debugger upon crashing, I get the message: "No symbols are loaded for any call stack frame. The source code cannot be displayed" This makes it quite hard to find the cause of the crashes. I am ...

debug output of game objects in Haskell/Yampa and HOOD

I'm stuck with generating debug output for my game objects using Haskell/Yampa (=Arrows) (with HOOD). My engine basically runs a list of game objects which produce Output states (line, circle) which are then rendered. data Output = Circle Position2 Double | Line Vector2 output :: [Output] -> IO () output oos = mapM render oos render ...

Multiple IDE debugging in Eclipse

Hi all, First off I'm not a Java expert by any stretch, nor am I a regular Eclipse user. Due to personal circumstances of a member of our team I have had to step into the breach and fix some bugs in two java applications currently under development. We have a core application (CORE) and an API which includes a reference to that CORE. W...

What's the easiest way to integrate a Javascript (ECMAscript) editor with debugging capability in my WPF application?

Hi, I'm developing a WPF user control (for a commercial application) that does Javascript (ECMAscript) editing with syntax highlighting and some sort of code evaluating. After some days of "heavy googling", thanks to AvalonEdit (SharpDevelop editor) I easily achieved the first requirement, and with Jint now I can somehow evaluate the edi...

Do you get Debug Assertions under C++ when no CRT is installed?

When you have a Debug version of a C++ program running on an OS that has no VS or CRT installed, will you still get Debug Assertion error boxes? The ones that say "Debug Assert Failed!". Or will you only get them when the machine has certain components, such as CRT or Visual Studio installed? ...

How to debug elisp?

Normally the easiest way to debug is using printf. What can I do to debug emacs-lisp? How can I print something to emacs editor from elisp? Or is there any way to debug elisp code? For example, how can I check if the following code is run in .emacs file? (load "auctex.el" nil t t) ...

Lisp code debugging

During web searching, I found the following comment : Traditional Lisp debugging practices can still be used. What are the traditional debugging practices? Normally, what tools are used for debugging lisp (with/without emacs)? ...

NUnit with VS 2010 is no longer stopping at breakpoints

The answer to this has got to be simple, but I sure don't see it. I'm working on an MVC2 project under VS2010, with Unit tests written in NUnit. I debug the tests (and code) by starting the NUnit GUI, then clicking Debug -> Attach To Process in VS, and attaching to nunit-agent. This has all worked fine for some time. I added one addi...