debugging

Can GDB display a list of pthread mutexes held by each thread?

I have GDB attached to a deadlocked application written with pthreads. There are ~10 threads that are all blocked, and I'd like to know which locks are held by which threads. This is possible in WinDbg using SOS.dll; is this possible in GDB? ...

How Do I Create A Certificate For My Android Market APK?

I want to upload my first APK/app to the Android Market, but I got this error (which did not lead me to the correct link when searched for in stackoverflow, by the way). Market does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. Market requires that the certificate used t...

Using debug versions of YUI2 components in YUI3

I am using YUI 2 components in YUI3 using the standard way YAHOO has provided to get accesss to the YAHOO namespace. However when YUI3 loads the yui2 components it loads teh min version which is no good for debugging. I'm having problems with the editor rendering and was hoping to try to use the code to debug. Is there a way I can f...

Exception after starting emulator : ddms null

Hello, After I start the emulator or AVD, in the eclipse Console window I see, [2010-10-21 14:03:46 - ddms]Exception during activity from Selector. [2010-10-21 14:03:46 - ddms]null java.lang.NullPointerException at com.android.ddmlib.Debugger.accept(Debugger.java:151) at com.android.ddmlib.Debugger.accept(Debugger.java:125) ...

Extendscript Toolkit not stopping at breakpoints, why?

I am scripting Illustrator CS5 with the Extendscript Toolkit. I set several breakpoints in my code, they show up as red dots next to the line number. But when I run the script, it executes all the way to the end without stopping and the breakpoint dots turn dark. What am I missing here? Thanks! ...

How to make .NET development less of a black box to a Rails developer?

I have been spoiled by Ruby on Rails. However, my present 9-5 has me working with the Microsoft .NET framework--from classic ASP to ASP.NET to ASP.NET MVC. I'm struggling to understand more deeply our code, because I feel like I'm missing: script/server, or a live tail of a development log, to provide debuggable runtime info script/c...

What is a stack trace, and how can I use it to debug my application errors?

Sometimes when I run my application it gives me an error that looks like: Exception in thread "main" java.lang.NullPointerException at com.example.myproject.Book.getTitle(Book.java:16) at com.example.myproject.Author.getBookTitles(Author.java:25) at com.example.myproject.Bootstrap.main(Bootstrap.java:14) People...

Deadend whilst Debugging Silverlight with WinDBG and SOS

I'm new to WinDBG. I'm looking for the cause of a memory leak and I've got as far as my current knowledge can take me. My MVVM App is leaking MyLovelyView objects. In WinDBG I run !dumpheap -type MyLovelyView and get the following: Address MT Size 05f2a978 0bc948d4 12 05f39638 04d51114 36 05f398d4 04d2...

What's the best way to set an Eclipse breakpoint on a EasyMock expect call?

I have code like ClockService mockClockService = createMock( ClockService.class ); Long timeFirstNodeCreated = new Date().getTime(); expect( mockClockService.getNow() ).andReturn( timeFirstNodeCreated ) ; Long timeFirstNodeDeleted = new Date().getTime(); expect( mockClockService.getNow() ).andReturn( timeFirstNodeDeleted ) ; ...

How can I debug the value of a PL/SQL collection in Oracle ?

I'm debugging a procedure which ... returns certain values. The procedure seems to use DBMS_SQL.DESCRIBE_COLUMNS2 which was, till now unknown to me. One of the out variables of the DBMS_SQL.DESCRIBE_COLUMNS2 procedure is a collection, and I want to examine that value is being returned into that - how can I observe/watch/examine this va...

JavaScript debugging symbols

When using minified or generated javascript I would like to be able to see the original source an step through the original rather than the generated output. This would be in much the same way debugging symbols for compiled binary files let you see the original source. The original source might not even be javascript but some equivalen...

Ultimate guide to Debug in Delphi

Is there a complete resource for debugging in Delphi that instructs on how to use all the IDE debugging tools? There used to be a guide from Marco Cantù but it was updated to Delphi 5 if I am not wrong. May you please redirect me to a complete resource updated at least to D2009 (better if XE). ...

Core dumps in visual studio 2010 from Release build

Hi, I have build application using .NET 4.0, WinForms and DevExpress Winforms components. I have a bug that I cannot reproduce using simple "step by step" method. I am trying to use core dumps to debug this issue. I can get core dump and view exception nicely inside visual studio using adplus -crash -pn Main.exe -o c:\output -y C:...

Running in the IDE fails when using FullDebugMode for FastMM

I am trying to use FullDebugMode(fastmm4) to have a detailed report of memory leaks. While I can get this work succesfully in a dummy application that creates and doesn't free a TStringList I cannot in another application. In both projects the dpr is like this: {$DEFINE FullDebugMode} {$DEFINE LogMemoryLeakDetailToFile} uses FastMM4...

Unable to attach to the process

I am trying to debug a service in VS 2005 running. Service is running under SYSTEM username. I have opened VS as administrator. The error I am getting is: Unable to attach the process. The system cannot find the file specified I am running on Windows Vista. ...

Clojure compile-time escape mechanism

The language Forth offers a "compile-time" escape mechanism where code can be executed immediately, while the compiler is running (not at run-time). You can include print statements, for example, to debug tricky syntax or type errors). Does Clojure have anything similar? I am getting a compile-time IllegalArgumentException in one of my ...

Why would I start a debug build without debugging?

Is there any benefit in starting a debug build without debugging (as opposed to a release build without debugging)? And what do I miss when I debug a release build (as opposed to debugging a debug build)? ...

How to debug TSQL on SQL Server 2005?

Hi guys, How can I debug TSQL on SQL Server 2005 instance? Thanks. ...

vc6 on windows 7 x64: pb when debugging DLL due to rebase

I have a DLL defining some COM object, loaded by an exe. when I start debuging the DLL, it works fine until I stop on my DLL (by breakpoint or ASSERT): after a continue, I can't no more stop on the DLL. If I open the 'module' dialog, I can see than the debugger think to have rebased the dll, but if I use processexplorer, I see that the...

Session_end event raised even open a different browser? vs2010,webform

void Session_End(object sender, EventArgs e) { HttpRuntime.Cache.Remove(this.Session.SessionID); } when enter into debug mode(a break point has set on the above code line), VS brings up an IE page, copy the url&paste to another browser of different type and hit enter, the break point is hit several times,why? ...