debugger

Confused About Debugger Inconsistency With [NSBundle mainBundle]

It sure seems like the Xcode debugger has been playing a dirty trick on me for the last couple hours. I was working with this code which has--in hindsight--a pretty obvious bug, but it wasn't obvious at the time: - (UIImage*)loadBundleImage:(NSString*)imageName { NSBundle* bundle = [NSBundle mainBundle]; NSString* path = [bu...

How to know that my callstack is wrong ?

Hello How can I recognize that the callstack that is shown by the debugger when my program crashes may be wrong and misleading. For example when the callstack says the following frames may be missing or incorrect, what that actually means? Also what the + number after the function call in the callstack means : kernel32!LoadLibrary + 0...

Is there any memory browser in QtCreator?

I can't find it. In the watcher window I can manually type memory addresses but I'd like to see bigger chunks of memory... If this doesn't exist, is there any other free memory mapper for the Mac (except for XCode and Eclipse)? Thanks, rui ...

How do I rerun a subroutine without restarting the script in Perl's debugger?

Suppose I have a situation where I'm trying to experiment with some Perl code. perl -d foo.pl Foo.pl chugs it's merry way around (it's a big script), and I decide I want to rerun a particular subroutine and single step through it, but without restarting the process. How would I do that? ...

How can I interface with the Perl debugger API?

Is there a way to interface the Perl debugger API which perl is using to control its debugging programmatically? ...

viewing the stack when a crash happens

hi, i am using AIX OS.here i am facing a problem that when ever the process crashes there is no stack written in the log.it just gives an information of signal1/10/4 has occured. but no stack is shown. since the code is an optimized code i am even not able to debud using dbx.gdb is not installed. could you please suggest how to see the ...

Most tricky/useful commands for gdb debugger

Hi All, Can you post your most tricky and useful commands while you run a debugger like gdb or dbx. ...

How to detect if an OpenGL debugger is being used?

Is there any way of detecting from my Windows OpenGL application if a debugger (such as gDEBugger) is being used to catch OpenGL calls? I'd like to be able to detect this and terminate my application if a debugger is found, to avoid shader code and textures from being ripped. The application is developed in C++ Builder 6. ...

Javascript: Debuging code created by eval() and new Function()

Hi all, im trying for put a private var into an already existent function, example: var AObject={ get:function(s){ return s.toLowerCase()+a; } } function temp(){ var a="A"; var o={}; eval("o.get="+AObject.get.toString()); reurn o; } var bObject=temp(); BObject.get("B"); // "bA" BObject.get(); /* error...

Debugger Visualizer for non-managed C++ code?

Hi - Does anyone know of a C++ IDE or debugger that's supports debugger visualizers for unmanaged C++ code? The problem is that Visual Studio's debugger visaulizer supports only managed C++. Thanks, Olumide PS: I'm still open to using VS if I can find a technique for making the visualizer work with unmanaged C++. ...

Save the contents of a variable in XCode Dubugger

Running the debugger in xcode when you set a break point you get a view a variable and can see all of the fantastically interesting values associated with it. Is there anyway to save/export this data to a file? I am of course having an issue where something is wrong but there is a ton of variables and I want to just compare one run of ...

Attaching Visual Studio Debugger to Sharepoint 2007 worker process crashes the process

When attempting to attach to the iis worker process associated with sharepoint, the worker process terminates with the following error: I have the correct assemblies deployed because adding the following line in my code causes the same effect when the debugger is not attached, similarly crashing the IIS worker process for Sharepoint: ...

visual studio 2008 crazy debugger skipping!

Hi What the hell could be causing this.... I'm developing my C# 3.5 ASP.NET MVC web app, same as I do all day every day. Not doing anything clever, just standard methods on classes calling other methods... I build my project, fire up a url in Chrome, and get the response I expect. I attach the debugger to w3wp.exe, set a breakpoint an...

Suppress context menu in AxWebBrowser object -- timing issue?

I am using an EventHandler to suppress a context menu on an AxWebBrowser. I am using the code below: public class HtmlEditor : System.Windows.Forms.UserControl { ... ... private AxSHDocVw.AxWebBrowser axWebBrowser1; ... ... public HtmlEditor() { InitializeComponent(); axWebBrowser1.DocumentCo...

Console and Debugger not working while Unit Testing iPhone in XCode

Hello folks, I am building a logic test suite using Xcode 3.1.4. I am able so far to build the test target and see the results inside de *.m test files as compiler errors (if they fail). The problem is that I can't see any information in the Debugger Console and I can't debug since the debugger does not work either. 1.How can I do to...

SetUnhandledException Filter

Hello I am using Visual Studio 2005. I am using SetUnhandledExceptionFilter to call my custom exception filter function when some unexpected error will happen. My custom filter function is called only if the unexpected error is Operating sytem error like Access Violation. When the exception is C++ exception , raised with throw, my cust...

Use debug.exe to restore a deleted file

Years ago I read a tutorial about the Windows DEBUG command. The article also described how the tool could be used to restore a deleted file. Could anyone give me a hint on how that was done? ...

Problem with breakpoint insertion

Possible Duplicate: Break point issue I am unable to put a breakpoint. I am getting the message in the breakpoint like: "break point will not be currently hit, no symbols are loaded" ...

Why does an unhandled exception not terminate a process while debugging?

This is a behavior I noticed several times before and I would like to know the reason behind that. If you run the following program under the (Visual Studio 2008) debugger, the debugger will keep breaking on the throw statement no matter how often you continue debugging. You have to stop debugging to get out there. I would expect that th...

Learning Java and logic using debugger. Did I cheat?

After a break from coding in general, my way of thinking logically faded (as if it was there to begin with...). I'm no master programmer. Intermediate at best. I decided to see if i can write an algorithm to print out the fibonacci sequence in Java. I got really frustrated because it was something so simple, and used the debugger to ...