debugging

How to debug a deadlock under mac osx?

I'm developing a port of audio player to Mac environment. It works fine under windows, but not with Mac. I got an unpredictable deadlock when I'm playing the music with the player, the only information I can get is to dump the stack of threads of the hanging process. Here is the call stack I get: Sampling process 1808 for 1 seconds w...

In a Java debugger, how to ignore exceptions never passing through my code

I'm currently using IntelliJ IDEA for Java development, but I'm also interested in answers targeting other IDEs or general concepts for debugging Java code. Because this is a feature I've missed in a number of IDEs, I'm unsure if I've missed a workflow concept when transferring my debug habits from other languages. Let's say I'm writing...

How to close an "orphaned" console window that was opened from within visual studio?

When working on console applications in Visual Studio, I will run the application by pressing F5 to bring it into debug mode. Occasionally (and I'm not sure how this happens), I'll get back into "edit mode" in Visual Studio and the debugged console window will still be open. It will remain open but entirely unresponsive. I can't clo...

debug Silverlight project to an ASP.NET solution

Hi Guys, I canNOT do it (debug Silverlight project to an ASP.NET solution), I have followed suggestion from this link http://www.codeproject.com/Tips/68127/Unable-to-DEBUG-Silverlight-project.aspx But without much luck. I have to manually go in and attach to process the silverlight page. All suggestions are welcome. Thanks, Voodoo...

Why is VS2010 looking for framework source code when Just My Code is enabled?

Googling this yields lots of entries on HOW TO step through Framework code. I'm trying to find out how NOT TO step into. First check: Yes, "Enable Just My Code" is checked in the Tools->Options->Debugging. That is supposed to keep VS2010 from looking for source code when you are stepping through a framework function (or anything else t...

Stop VC++ from pointing at errors in files outside my project?

Is there any way to make VC++ 2010 trace errors back to the last line that was called INSIDE my project? I don't know why they did it, but its completely useless when VC++ tells me that the error is inside one of the standard classes rather than which line in my project actually led to that error. ...

How can I debug an oracle stored procedure from a .net web app?

I have a .net web application that makes heavy use of oracle stored procedures. One of these is problematic - some times it works, some times it doesn't. Is there any way to either attach a debugger to oracle when the sp is called, or step into it directly from Visual Studio? What other debugging techniques are there for a .net/Oracle...

Debugging across projects in VS2008?

We have a DLL which provides the data layer for several of our projects. Typically when debugging or adding a new feature to this library, I could run one of the projects and Step Into the function call and continue debugging code in the DLL project. For some reason, that is no longer working since we switched to Visual Studio 2008... ...

VS2008 : Can't debug, error "AspNetHostingPermission"

Man, I'm having a rough day. I have a ASP.NET 2.0 application with AJAX extensions and I want to debug an unruly function. When I press Debug, it goes to compile the site, but it errors out : Error 945 Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken...

Give a name to a boost thread?

Is it possible to give a name to a boost::thread so that the debuggers tables and the crash logs can be more readable? How? ...

Reducing the size of minidumps of managed programs while keeping some heap information?

With the dump debugging support in .NET 4.0 we are looking into automatically (after asking the user of course :) creating minidumps of C# program crashes to upload them to our issue tracking system (so that the minidumps can assist in resolving the cause of the crash). Everything is working fine when using the WithFullMemory minidump t...

Tracing a WSoD in Joomla

How do I find out which code section an error occurs in, if the site done on Joomla gives me a White Screen of Death? I even know which module fails, and under what condition (it is a slideshow module, and it fails when one of the items to display are of video type), but I would like to check what place in the code it fails in, in the h...

Strange Problem with a .NET Windows Service

I have two Windows services written in C# following the same patterns and methodology. Both services were development tested against a Windows 7 VM and QA tested on Windows Server 2008 VM. Both services have been installed and uninstalled many times under these test environments without issue, however upon installing in the production e...

PHP: Notice: Undefined index where the session variable is defined.

I am making a registration system with an e-mail verifier. Your typical "use this code to verify" type of thing. I want a session variable to be stored, so that when people complete their account registration on the registration page and somehow navigate back to the page on accident, it reminds them that they need to activate their acco...

On Ruby on Rails, how do we print debug info inside of a controller?

In PHP, CGI, or in RoR's View, we can easily print out debug information. How about in the Controller, how can we just say, print "hello world" (to the webpage output) and return to continue with the view, or stop the controller right there? ...

debugging both managed c# code and unmanaged c++ code in one solution

I have a solution with an unmanaged c++ dll project in it and a c# managed project that calls dll using PInvoke. Is it possible to debug both managed and unmanaged code so that I see what is going on "inside" of that dll? ...

Winsock's connect() permanently returns WSAETIMEDOUT, but PuTTY connects on the same port

Hello, Probably the weirdest bug I've encountered so far. I need to connect to some 3rd-party application running under Windows XP Embedded. Network connectivity present and works: I'm able to connect to the expected port using PuTTY running on Windows XP SP3 and perform some telnet-like operations. Now, my application is a very simple...

Why is the Android emulator skipping my return statement?

I'm getting unexpected behavior in my Android 1.5 application under the Windows emulator and debugging with Eclipse. Here's a generalization of what the code is doing: if (someCondition) { System.out.println("got here"); return "a"; } if (someOtherCondition) return "b" return "c"; If I step through this code with the de...

JavaScript: Possible uses for #debug directive?

Where I work, all our JavaScript is run through a compiler before it's deployed for production release. One of the things this JavaScript compiler does (beside do things like minify), is look for lines of code that appear like this, and strip them out of the release versions of our JavaScript: //#debug alert("this line of code will not ...

Debugging Web Requests on an Android Device

Is there a way to route requests made through the web browser on an Android device through Fiddler? I would like to debug web requests that my device is making when I load a web page, and the equivalent emulator not necessarily giving me the same results. Thanks, Dave Morris ...