debugging

What do the pdb files actually do?

OK, I realize that the PDB files are the symbol files for .NET assemblies. But I never really looked into their extended usage. If I hook in with a remote debugger from a visual studio that has the running code loaded, do I actually need the PDB files on the remote machine? Will I get unhandled exception information without them on th...

Track down memory leak in Ruby 1.9

I have a Ruby application that uses eventmachine and starts 16 processes that each manage 1000 connections. Initially each process only uses around 150MB, however after some runtime they consume more and more towards 500MB and I am running out of memory and swap. The amount of open connections (indicated by EM.connection_count) is normal...

NSLog statements aren't working while unit tests are running

Hi all, I am unit testing my app in xcode, but for some reason I can't see any printouts in the debugger console from the NSLog() statements in my implementation files. Why would this be? And how do I get my darned printouts?? Thanks ...

Ruby equivalent to func_get_args()

In many PHP-application, when things are badly documented or weird implemented, the function func_get_args() comes to resque. It allows me to inspect (or print) what variables are passed along to a function function poorly_documented($op, $a2, $a3 = 'default', $rest) { var_dump(func_get_args()); // ... } Allthough in Ruby I hardly...

matlab: stop and continue execution from debugger possible?

Is there any way to stop the execution of a matlab program from the debugger like ctrl+c does, but then being able to continue execution (like you can in say c#)? If not, is there any better way to workaround this other than trying to pre-emptively set break points or dbstop statements in your matlab code? I would like to be able to ...

JDB -- How to get a list of methods before running the program?

I'm learning JDB and running into a bit of a paradox. After starting JDB (with "jdb ClassName") most tutorials will tell me to type > methods ClassName to see a list of available methods so that I can set my breakpoints. If I do that, JDB replies Command 'methods' is not valid until the VM is started with the 'run' command Of...

A simple, uniform and portable way of including tracing and backtracing into a C program.

GNU libc's backtrace and In-circuit emulators/debuggers are not always available when porting code to a new platform, especially when the target is a micro C compiler such as for the Z80. (Typically a program bug would "just hang" somewhere, or crash the gadget.) Is there an alternative to the classic "wolf fencing" method of manually i...

Debugging rspec with ruby1.9 and netbeans

Hi, How can I debug rspec specs with an IDE? specifically I'm using the following: * Ubuntu 10.04 * ruby 1.9.2-dev built with rvm * rails3-beta4 * NetBeans 6.9 I have installed the ruby-debug19 and the ruby-debug-ide91 gems, but NetBeans doesn't recognize my fast-debugger. Besides trying to debug a spec in NetBeans gives the follow...

Debugging iframes with Chrome developer tools

I'd like to use the Chrome developer console to look at variables and DOM elements in my app, but the app exists inside an iframe (since it's an OpenSocial app). So the situation is: <containing site> <iframe, id = foo, src = different domain> ... my app ... </iframe> </containing site> Is there any way to access things happening...

Storing debug session (breakpoint/bookmarks) in Visual Studio (C++)

Hi! When I'm debugging something, I would like to store breakpoints/bookmarks related to bug* I'm currently working on. So when I switch to another bug*, I don't want every time to manually disable breakpoints/bookmarks related to previous bug, and create another one for the new bug. It would be great that is possible to tag breakpoint ...

Where to get the debug version of indesign cs5 ?

Hi, I want to create plugins on my own. Before doing that, I am trying to run the samples given in the Indesign sdk samples. I am using Mac, I downloaded the entire eclipse archive and set the indesgn cs5 sdk in the preference of eclipse. If i run some samples like BasicDialog, it is running successful and plugin is created. And for oth...

php5 magic function __toString($param =null ) can not take args

i used to have a function defined like this (that is working fine under ubuntu 9.10): public function __toString( $surNameFirst = false) { if ($this->givenName . $this->surname == '') return null; else ....... } after i have updated my machine to ubuntu 10.04( and php version Version: 5.3.2-1ubuntu4.2 ) my app starts to sh...

Message boxes (VBA): how can I include/use them in my Excel Macros?

I'm teaching myself (read hacking) through some old Excel Macros that are quite long. However, as I change quite a few lines I want to be sure that I know when and where my new and re-hashed elements are occuring - or not. So my question/s is: How do I insert a simple message box function that will pop up when a loop/procedure/event ha...

Unit-test passes in Debug, but hangs when Run

I have an odd problem. I have a unit test that keeps getting stuck in Run Mode. When I run the same test in Debug, with no breakpoints, the test passes every time. Basically, it is a socket connection test. I first disconnect a socket, and then try to reconnect, and I am trying to check if the reconnection was successful. Somewhere in...

Why am I having memory leaks using Instruments on the device but not on the simulator

Hello, I am getting close to finishing the release of my application and are trying to use Instruments to fix any memory leaks. How come that I can spot one memory leak when using Instruments and my device but not when I am using the iPhone simulator? I understand that this is a high-level question, but I don't think posting any code ...

VS2010 Debugger Not Responding

I am working on a large website that is comprised of multiple applications. We are still using web forms. All of the applications are in a common directory that serves as the root directory in my localhost. The site was originally built in 2005 on 3.5 but has been migrated to 2010 still running on 3.5 (2.0). My problem is that my debugge...

Debugging on iOS without a paid developer membership (3.x)

I currently have it set up for Xcode to Build & Go onto my iPod using this: http://il.youtube.com/watch?v=CHOVdi-kPV0 (A script to tell Xcode that it doesn't need to codesign). This works, except when the app launches, it closes instantly and Xcode says it failed to launch. You can manually reopen the application and it works 100% after....

How to check if program was compiled with debug symbols?

I'd like to trace some code in GIMP and therefore need GIMP with debug symbols enabled. I don't remember whether I have enabled them during compilation. How to check that without recompiling the program? ...

Error from Debugger: Previous frame inner to this frame (gdb could not unwind past this frame)

I am getting the following debugger error when I encounter a breakpoint on the device: Error from Debugger: Previous frame inner to this frame (gdb could not unwind past this frame) This occurs when the app hits a breakpoint. If I hit the continue button in the debugger, it continues happily until the next breakpoint, when it pops up ...

how to Apply code changes at run time without breaking exectuion

Hi there, I am in visual studio 2008 and working on a very huge project which takes alot of time to build now when it is running in debug and i make some code changes i want it to incorporate those code changes at run Time. i do understand that this will not be always possible but in some situation it is. I do know that when i break t...