debugging

"The source file is different...." message in Visual Studio 2008 is result of debugging x32 apps on x64 Windows.

Hi, I'm writing ADO.NET provider. For debugging I use class DbProviderFactories.GetFactory method. This method constructs my inherited DbProviderFactory class that i use for create DbConnection inheritor of my provider and etc.. When I try set breakpoint in my provider code I sow it isn't work - execution doesn't stopped. When I throw ex...

Basic C++ debugging question

Do I absolutely have to learn assembly language to be able to use the debugger optimally? I noticed that during debugging sessions, I see these cryptic codes and CPU registers... (eax... blah blah). I shall assume that that's assembly and I am supposed to somehow decipher the cause of the problem from it. Is there some shortcut to ...

Anyone know a tool for doing a keyword search against all script included in a page?

Within Firebug, I can look at script includes and search each include individually. I would like to be able to search all includes at once. Does anyone know a tool that will do this? ...

Debugging a Delphi app on Wine

Hi all, I have a Delphi Windows app that dies horribly under Wine - doesn't even get to creating the main form. Porting to Free Pascal is not an option for various reasons. Can I debug under Wine using Delphi's native means? If not, can I debug under Wine using gdb, and if so, how do I feed the debug info in Delphi format (Turbo Debugg...

VSX: Programmatically disabling breakpoints at runtime

How can breakpoints be enabled or disabled at runtime? I'm writing a test workbench application that can run other .net code for the purposes of debugging plugins. The workbench app itself is not debuggable (DebuggableNonUserCodeAttribute) but the user code that it calls should be. But then, under certain circumstances at runtime, the...

Safety nets in complex multi-threaded code?

As a developer who has just finished writing thousands of lines of complex multi-threaded 'C' code in a project, and which is going to be enhanced, modified etc. by several other developers unfamiliar with this code in the future, I wanted to find out what kind of safety nets do you guys try to put in such code? As an example I could do ...

Stage shifts when using addChild?

I'm having a very odd bug with ActionScript 3 in Flash CS4. I am adding movie clips to a stage in a for loop and then moving them out of view so that I can pull them in and remove them when I need them. I've narrowed down the issue to a point that I know that every time one of the movie clips are added to the stage using addChild(), th...

Why is this a memory copying error - Insure++ false positive?

I've been trying run Insure++ with some scientific code and it reports many errors, although to be fair it officially does not support K&R C and I don't know what having a lot of K&R functions has done to its evaluation process. The C and C++ code it is testing is being run in a DLL invoked from a WPF application. One error report that...

Unable to create a file in Apache modules

I am trying to create a file in Apache for writing debugging messages (Just to write some log messages).. But unable to create a file under Apache module. Just check out my code & kindly help me out! Do advice me with a code snippet, is there any way to log debugging messages under Apache?? ============ (Header files are removed for ...

Notice: Undefined index: XXX - Does it really matter?

Hello. Since i changed my error reporting level to error_reporting(E_ALL | E_STRICT); I am facing this error. I can obviate from this error using isset() but the code looks so ugly! So my question is: What if I go back to my normal settings of error reporting? does it really matter to know that something is not already defined? becau...

How to debug a jQuery application remotely on client's browser/OS/system?

I have developed a web app (that uses jQuery) which works just fine for me but isn't working for one of my users. I've tried replicating the problem matching his browser/OS but it is of no use. The application works for me but not for him. He has tried with a lot of browsers: Chrome/Firefox/IE but it doesn't work in any for him. The only...

Where can C debugger tutorials be found?

Is there any tutorial about using debuggers, when doing C programming on Linux (console mode)? ...

How to start Xcode debugger for a project without any executable?

I have a Xcode project that is building a library and I want to be able to debug the library when it is loaded by the main application. Run and Debug options from Run menu are disabled and if i try to use attach to process option I get "No launchable executable present at path". When looking at Active Executable I see but I don't know ...

Debugging in Visual SlickEdit

Hi, We're developing some windows ce software, for compilation we use platform builder build system (it's possible to install SDK & build from Visual Studio Directly), for debugging Visual Studio (2005). My issue is that I use Visual SlickEdit (11.0.2) for Implementation & Compilation (I've wrote some scripts for that) but still I've ...

can anyone recommend a firefox plugin so I can see exactly what is being sent to a post form?

I'm trying to debug my form POST code. Is there any firefox plugin so I can see exactly what the browser is sending (rather than monitor at the server side)? ...

ASP.NET MVC - How to make code behave differently when running locally vs. in QA vs. in Production

Question: How to make code behave differently when running locally vs. in QA vs. in production? Example: In an ASP.NET MVC application I have a controller set up to deliver e-mail notifications. When running locally on a development machine I want the e-mails delivered to the developer, when in QA I don't want any e-mail notifications ...

check what files are open in Python

I'm getting an error in a program that is supposed to run for a long time that too many files are open. Is there any way I can keep track of which files are open so I can print that list out occasionally and see where the problem is? ...

Virtual methods chaos, how can I find what causes that?

A colleague of mine had a problem with some C++ code today. He was debugging the weird behaviour of an object's virtual method. Whenever the method executed ( under debug, Visual Studio 2005 ), everything went wrong, and the debugger wouldn't step in that method, but in the object's destructor! Also, the virtual table of the object, only...

Core Data: Errors vs Exceptions Part 2

My question is similar to this one, but I need further clarification. I often get exceptions during code like this: NSError* error; if (![managedObjectContext save:&error]) { NSLog(@"Failed to save to data store: %@", [error localizedDescription]); } However, when I put a breakpoint in objc_exception_throw, I can find out that an ...

Help debugging iPhone app - EXC_BAD_ACCESS

Hi, I've developed my application using my 3G device to test with. Upon giving this to a friend to test, he's noticed that it crashes..I've had a look at the crash log, but it's not much use except for the "EXC_BAD_ACCESS" statement after a few memory warnings. On my device, I can use the imagePicker lots, and each time a photo is take...