debugging

How start a debug session in the simulator with previous app state

I have a hard-to-catch error that only happend the 2 or 3 time I start my app, after a previous failure of it. But because when I do Run&Debug from the XCode menu the app is delete from the simulator or device, I can debug it to find what is happening. I try to attach to the process, but when I succed is too late and the app crash. I h...

Easiest way to pop up interactive Python console?

My application has a Python interpreter embedded in it. However there's currently not any way to inspect anything about Python directly. I'd like to be able to pop up an interactive shell at various points to inspect what's going on in Python. I've found several similar questions which pointed me to code.InteractiveConsole and IPython. ...

How to add a breakpoint to objc_exception_throw?

this was the answer from the brad larson on this SO question If you add two breakpoints, you should be able to debug these exceptions. To do this, go to Run | Show | Breakpoints and create two global breakpoints (I do them globally because they are so useful in all my applications). The first should be named "objc_exception_throw" and i...

What is the Java equivalent of Debugger.Launch()?

What is the Java equivalent of Debugger.Launch()? ...

Debugging a web app on IIS7 without installing IIS6 Metabase

Is it possible to attach (or debug with F5) to IIS7's worker process without installing IIS6 Metabase? ...

Unable to attach to webdev.webserver.exe (ASP.NET Development Server)

As part of my local testing process, I manually run the webdev.webserver.exe executable from a batch file. However, sometimes I would like to debug the app that runs in the ASP.NET Development Server process from within Visual Studio 2008, but I get an error whenever I try to attach to the executable: "Unable to attach to process". Doe...

What debugger tools do you use to look at contents of a STL container (on linux)

I use gdb (actually DDD), and getting an element out of container is impossible. So I typically end up rolling my own loop for debugging purposes... What do you do? ...

How to develop good debugging skills?

Possible Duplicate: Debugging techniques How can I improve my debugging skills? I am thinking in the context of C++ under UNIX, C#, and in general. Please suggest how I can improve in these areas in terms of: Approaches to take, where to start, and how to proceed. Tools to use, and how use them effectively. Recommended materi...

Regarding remote debugging on MCF5485EVB board using Eclipse CDT

Hello, I have installed Eclipse CDT, CodeSourcery G++ toolchain on Linux host. I am using the Code Sourcery Eclipse IDE. I have installed Linux kernel using Linux Target Image Builder from the Freescale site, onto the MCF5485 board. I have created a "helloworld" project on my Linux host using the Sourcery Eclipse IDE. I have copied the ...

(.net) Logging the function logic of my program

Hello. I'd like for debugging purposes to be able to log what functions are called and in what order. So I've been just putting Debug.WriteLine("myFunctionName(args)") all over my functions, logging it in the end to a file. Isn't there a better approach to do this? I'd hope so. ...

Why doesn't Java tell you which pointer is null?

I've always wondered why the JVM doesn't tell you which pointer (or more precisely, which variable) is null when a NullPointerException is thrown. A line number isn't specific enough because the offending line can often contain numerous variables that could have caused the error. Is there any compiler or JVM flag that would make these ...

Oracle: tracing SQL statements

I'm maintaining an home-brew web-based help-desk solution and we are experiencing an erroneous change in a db field under some circumstances. The code involved is quite frankly a mess, mixing different approaches to database access (the worst and most dangerous one being building sql strings through concatenation). A full-text search of ...

Debugging tools for the R language

Hi everybody, After learning R about 9 months ago, I am finally graduating from debugging by using print() statements every other line. I am now a pretty constant user of browser() and debug(). I have recently become aware of a few more tools: traceback(), trace(), and recover(). Does anybody have advice on when (and how) to use th...

Disable Hot Code Replace for the Eclipse Java debugger

When you change Java code while in a debugging session, Eclipse will upload the updated class files into the running JVM (hot code replace). This even works for remote applications. Is there a way to turn Hot Code Replace off (within Eclipse, not at the remote JVM)? We want to be able to debug our test and staging servers remotely, but...

how can I use debuginfo-install with a local file ?

hello, im trying to debug a program I wrote but the gdb tells me an error : Missing separate debuginfos, use: debuginfo-istall glibc-2.9-2.i686 when im trying to use that command, it gaves me an error because my fedora is disconnected from the internet. however, I have glibc-2.9-2.i686 in my fedora's cd. how can I use debuginfo-insta...

debuginfo-install using a local file

hello, im trying to debug a program I wrote but the gdb tells me an error : Missing separate debuginfos, use: debuginfo-istall glibc-2.9-2.i686 when im trying to use that command, it gaves me an error because my fedora is disconnected from the internet. however, I have glibc-2.9-2.i686 in my fedora's cd. how can I use debuginfo-insta...

Formatting trace output

I'm using TextWriterTraceListener to log diagnostics messages to a text file. However I wan't also to log a timestamp of every trace message added. Is it possible to define a kind of formatter for the listener that would automatically add timestamps? Currently I'm adding timestamps manually on every Trace.WriteLine() call but this isn't...

What are some good methods or steps to debug a seg fault in Perl?

There are two cases where my code won't seg fault: When I use Smart::Comments in at least one place run through the debugger. I've tracked it down to this call: $action->{breakdown} = join( ' ' , each_pair { my ( $name, $length ) = @_; return "x$length" if $name eq 'FILLER'; ...

Visual Studio Debugger - Automatic Variable Assignment

I am working on a multi-developer project and the application being developed is launcher through a launcher application which passes parameters such as the user logged in, their location, etc. Right now when I debug the application I set a breakpoint on the code that parses the input parameters and I assign the username variable my user...

How to stop other threads stealing focus when debugging in Eclipse?

Here's the scenario: I'm debugging a server process running in Eclipse 3.4.1. There are 20 threads or so, waking up at various interval after sleeping. I set a breakpoint in one method on one thread, and Eclipse stops there properly. The thread is expanded with a stack trace in the Debug view, and I can use the various buttons to st...