debugging

Quickly switch between the project and debug windows in Xcode

When I run a program in the Simulator, the project window changes to the debug window automatically. This is what I want it to do. However, after running the simulation, I want to get back to the project window. I have to use my mouse to click on the tiny icon on the top left of the debug window in order to get to the project window agai...

GDB: Watchpoint a fixed address.

For my current embedded application I am trying to put GDB watch point at a fixed memory address. As an example, my application updates the following address: 0x10793ad0. In order to be sure which part of the code is corrupting the value, I tried watch 0x10793ad0 Even though GDB does not print any error after this, it is not able to ...

Setting breakpoint in GDB where the function returns

I have a C++ function which has many return statements at various places. How to set a breakpoint at the return statement where the function actually returns ? And what does "break" command without argument means? ...

Debugging C# assembly launched by embedded mono runtime?

Hi! I am talking about a small game engine using C# for game programming. So, I have a C++ app embedding mono runtime (I call it 'launcher'). And I have an assembly written in C# which is my game engine class library. The launcher launches the assembly as it is suggested in Embedding Mono. And now the interesting part! The launcher impl...

R script line numbers at error?

I found this post from a year ago, and I'm using R version 2.11.1 (2010-05-31), but still getting error messages without line numbers. Any solution? ...

How do I start the pylons web application programmaticly?

Normally, we start a pylons web application via command line: pastser serve --reload development.ini I wanna know can we start it programmaticly? In a python script file? I want this because I can start it in IDE, and use the debugger ...

Debug com visible dll managed code

Hi, I have written a COM visible dll, which will be called from a native Win32 program. For debugging purposes I added a simple WinForms client to the solution containing the dll. Now when I set a breakpoint in the dll, that breakpoint is hit, but I can't step through the code: the debugger always jumps to the next breakpoint in the dl...

ASP.NET application throwing "unable to find assembly" error for NHibernate

So let me start by saying that the weird thing about this error is that the application is running, and the error bubbles to the event log, but it's intermittent. Sometimes it's 2 hours between it happening, sometimes a few minutes, sometimes half an hour. Does not appear to be tied directly to requests (and requests don't seem to be f...

"no symbol XXX in current context" for specific classes in debugging of XCode ip* project

I randomly get this error, and I can't figure out a way to fix it: the variables pane (top right) is blank, and the gdb "po" command can't print any variables. The "po" command doesn't even know about "self": The problem appears specifically for all methods in the MGMinimap class. Nowhere else. I can debug from A and see self and th...

How do I use breakpoints in F# interactive?

I've started researching some ideas in algorithms using VS2010 and F# interactive. So, I've created a DebugScript.fsx, I write some code there and eventually send it to F#Int to test it. At some some moment I need to catch a bug. But I can't place a breakpoint even in a simple for loop: for i in stringarray do printfn "%s" i Whe...

How does debugging work in Visual Studio?

I can attach Visual Studio to an executable, and then my breakpoints get called. What's going on under the hood? What mechanism allows my breakpoints to fire? ...

Debugging Visual Studio 2010/IE 8 - Unable to start program - Element not found

Hi, When trying to debug an MVC2 app in VS2010 using IE 8, I sometimes get the following error (port number changes). Unable to Start program 'http://localhost:55853/' Element not found It is really difficult to find the problem as it seems to be totally random. Has anyone else come across this problem? ...

Eclipse debugging a variable

Hi, While debugging a variable in Eclipse that takes "true" but the same takes "false" when i run the code in Eclipse. What are all the possible reasons for this scenario? Thx ...

Whats the dSYM and how to use it? (iOS SDK)

Sometimes compiler produces .dSYM files. I guess this is debugging related file, but I don't know what it is, and how to use it. What's that? and How to use it? ...

Debugging ASP.NET Session Variables

when the process run in the same browser, it's easy to open a new TAB and check the session variables there, everything works fine in this situation. But when a webpage runs inside a WebBrowser Control (under Windows Forms) for example, I can no longer get any Session Variable that process is using. Does anyone have an idea on how t...

How to execute another python script from your script and be able to debug?

You have wrapper python script that is calling another python script, currently using os.system('python another.py some-params'). You want to be able to debug both scripts and if you use os.system() you'll loose the debugger, so it does make sense to load the second script using the same interpretor instead of starting another one. imp...

Production error

Hi, I keep getting an error in my production environment but not in my development. The error is pretty severe, it occurs at different times and simply loops a display message that says something like "Submitoperation failed, please inspect each Entity.ValidationError in EntitiesInError", until there are so many popupwindows that the a...

Visual C++ 2008: debugging data behind pointer array

How can I see data behind a pointer to an array more than the first item in Visual Studio 2008? It would be so useful to see arbitrary amount of items, not just the first one. ...

How to use Ant sources with Eclipse?

Hi all, my question relates to the Ant libs and source included with various Eclipse distributions. e.g. eclipse/plugins/org.apache.ant_1.7.1.v20090120-1145 and eclipse/plugins/org.apache.ant.source_1.7.1.v20090120-1145.jar How can I associate these together? What I'd like to do is set a breakpoint in the Ant Javac task, so I can confi...

Build mode is always debug

I have a ASP.NET application that I am trying to build in release mode, but upon inspection (Assembly Information) it is always showing up in debug mode. I've also changed the Web.config entry to specify that the compilation mode should not be debug, but still no luck. Does anyone have any ideas how to get my build into release mode? ...