debugging

Weirdest IE bug ever? -- hovering a link causes page elements to jump up and cover others

Ok, I've been dealing with IE bugs for a long time now, but this one is beyond me. IE 7 and even 8 does it for sure, I've not seen it on FF or Chrome. So here's a live URL which produces it: http://mog.com/music/America/Holiday Reproducing isn't easy, it can take a few times to make it happen. Watch your scrollbar to see it change s...

Debugging .Net 3.5 code running under a .Net 4.0 App Pool

I have trawled the internet - to no avail. Woe is me. I have a .Net website running under a .Net framework 4.0 App Pool. The website references various assemblies that have been compiled for .Net 3.5. I have ensured that identical versions of the dll's and pdb's are in the bin folder of the the 3.5 code that I am trying to debug, and ...

Can't find source for specific jar/class when debugging tomcat in eclipse

I'm fairly new to java/eclipse development and I'm having a bit of a problem debugging code from a specific jar in a web app that my company uses. First off, I have Tomcat setup properly and can run the webapp successfully (other than the bug that I'm trying to find!). There are about two dozen jar files in the lib directory for the we...

Debugging in multi-project under one solution in vs 2010

I have multiple projects in one solution. Project A (the starting project) starts Project B using Process.Start. All the debugging methods work fine in project A, however after A starts B, not only do breakpoints not work, but also the output from calls to System.Diagnostics.Debug.WriteLine is not displayed. Does anyone know how to de...

Using pydbgr with Emacs

Has anyone used Pydbgr with Emacs and if so would they mind sharing their .emacs configuration plus any associated elisp sources required. The installation instructions can be found at: http://code.google.com/p/pydbgr/wiki/Tutorial#Installation Pydbgr looks like a really useful extension to the capabilities of pdb, especially its su...

Increase debug item count in Visual Studio

I routinely have to look at byte [1024] and longer in the debugger (VS 2008). At least by default, it shows 15 items. I have 23" widescreens that could display 3 or 4 times that vertically. Does anyone know how to get more items to display (if it is possible)? Clarification This is primarily for C# code and I am mostly interested in t...

What is a good way to trace javascript execution as it happens (but skip jQuery)?

I want to step through a javascript as it happens, but skipping the steps where the functions are in jQuery. Is there any way this can be done? ...

Is there a way to limit the memory, ghci can have?

I'm used to debug my code using ghci. Often, something like this happens (not so obvious, of course): ghci> let f@(_:x) = 0:1:zipWith(+)f x ghci> length f Then, nothing happens for some time, and if I don't react fast enough, ghci has eaten maybe 2 GB of RAM, causing my system to freeze. If it's too late, the only way to solve this pr...

ColdFusion "system has attempted to use an undefined value" Null Pointers

So I have this error on a feed that magically stopped working for no reason. The error i get is "The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code. Null Pointers are another name for undefined values. " OK, i look up Null pointers and Ben Nadel (god...

Adding message to assert

Hallo! I'm looking for a way to add custom messages to assert statements. I found this questions http://stackoverflow.com/questions/3692954/add-custom-messages-in-assert but the message is static there. I want to do something like this: assert((0 < x) && (x < 10), std::string("x was ") + myToString(x)); When the assertion fails I wan...

How to debug JavaScript files which are loaded dynmically?

Currently the web application I am working on loads in a number of script files using jQuery.Load() when the document DOM is ready. However, if those script files have syntax errors, neither Firebug or IE Developer Tool can reliably shows the line with error or give some really huge line numbers. How can I debug such scripts? Or should ...

Can I instruct gdb to run commands in response to SIGTRAP?

I'm debugging a reference leak in a GObject-based application. GObject has a simple built-in mechanism to help with such matters: you can set the g_trap_object_ref variable in gobject.c to the object that you care about, and then every ref or unref of that object will hit a breakpoint instruction (via G_BREAKPOINT()). So sure enough, th...

A debugger to show me the names of the controls on the form

C# WinApps: what is a tool or debugger that I can use to see the name and values of the controls that I have drawn on the form at run time - I mean when I run my program I want to be able to use that tool and hover over controls on the form and that program show me the name and value of that control. ...

Can I get an automatic dump of unfree'd memory on Mac OS X process completion when running under gdb?

On Windows, I've long been used to the debug CRT's _CRT_LEAK_CHECK_DF functionality. When the program finishes, and once all the atexit callbacks and (in C++) global destructors have been run, it prints out a list of all the still-allocated malloc and new blocks. This is pretty crude, and the output isn't actually terribly useful, but it...

iPhone playback AudioQueue stops/fails to continue after pausing at a breakpoint during debugging

For some reason, it seems that stopping at a breakpoint during debugging will kill my audio queue playback. AudioQueue will be playing audio output. Trigger a breakpoint to pause my iPhone app. Subsequent resume, audio no longer gets played. ( However, AudioQueue callback functions are still getting called.) ( No AudioSession or AudioQ...

Log.d and impact on performance

I'm not entirely sure about what I'm reading in the documentation. Is it ok to leave a bunch of log.d pieces of code scattered about, or should I comment them out so that they don't impact my app's performance. Thanks, I'm a little confused because if you read about the log object (http://developer.android.com/reference/android/util/Lo...

Monitoring tools accuracy - Debugging application latency

Hello, we are having latency issues in one of our network application. Most of the time requests are being handled within 100ms. But sometime it can take up to a few seconds for no apparent reason. So I hooked up some monitoring tools and looked up what was happening (Wireshark to monitor the network externally through port replication ...

Visual C++ 2008 - breakpoint cannot be hit

I am trying to dissect a legacy application through debugging, but I can't get the breakpoint to hit in certain places of the application. The application has a c# GUI frontend and a c++ backend. I am trying to put a breakpoint in a c++ project of the solution. There are a couple of c++ projects, but I cannot set a breakpoint in one of...

Fancybox Inline content Modal Window Not Displaying

I'm very experienced with Fancybox, great plugin, but I can't get it to display my inline content. According to the documentation you are supposed to use a div with style="display:none"... I've got that and I know the plugin is working, verified that all scripts are loaded and also the Fancybox overlay works when clicking the link, but ...

How is organized the debug information and what does it contain?

How is organized the debug information in a compiled C/C++ program ? What does it contain ? How the debug information is used by the debugger, e.g. gdb and how can I read the debug information better than nm or objdump? ...