debugging

What is the format (schema) of .NET PDB files?

What is the format (schema) of .NET PDB files? I'd like to parse the information out of these files so that I can display the correct lines of code (line numbers) in a debugging application. ...

How to debug deadlock with python?

I am developing a multi-threading application, which is deadlocking. I am using Visual C++ Express 2008 to trace the program. Once the deadlock occurs, I just pause the program and trace. I found that when deadlock occurs, there will be two threads called python from my C++ extension. All of them use Queue in python code, so I guess ...

Visual Studio detaches from application as soon as debugging starts

I have a web application that I've always been able to run in Visual Studio and it debugs just fine (breakpoints work, I can pause execution, etc). Recently, the behavior changed suddenly, and a few things happen: I start debugging, it lauches IE and loads the application, but after a few seconds (sometimes the page hasn't even display...

Debugging JVM crashes under Windows

I wrote a piece of software in Java that communicates with USB hardware by using a DLL provided by the hardware vendor. I used the Java Native Access library to write the wrappers to native code. Sometimes when I am running it, only on native code related functions, JVM crashes and I cannot find what caused the bug because it happens in ...

Debugging a DLL which is in another solution on VS2003

I'm am trying to debug a DLL which is called from a VC++ application, but cannot step-inside the DLL function because the DLL source is located in another solution project. I have tried to set a break point right before the DLL function call but when I try to step-in it just passes right down. I am aware that it is possible to just de...

XCode debugger: display long strings

While debugging a program in XCode I have several CFStringRef variables that point to strings with lengths around the 200 character mark. In the debugger, it only shows the value of these strings up to a certain length and then just ellipses them away. I'd really like to see the full value of the strings. Is there some option I can con...

please tell me where i made error in this jsp program..

<%@ page import="java.io.*" %> <%-- <%@ page contentType="text/html;charset=ISO-8859-1" %> --%> <% int iLf = 10; char cLf = (char)iLf; File outputFile = new File(generate.xml); outputFile.createNewFile(); FileWriter outfile = new FileWriter(outputFile); outfile.write(" <?xml version='1.0' encoding='UTF-8'?> "+cLf); outfile.write(" <playl...

NetBeans PHP and XDebug - jumping to methods on call stack?

Hi everyone, I'm having trouble with debugging a PHP project through NetBeans using XDebug, and was hoping someone out there might have had this problem before. Debugging works fine for the requested php file - so if I go to index.php on the remote server, I can put a breakpoint anywhere in index.php in NetBeans and the code stops there...

How can I find memory leaks in my Python program?

I've got a fairly complex (about 20,000) line Python program which after some development has started consuming increasing amounts of memory when it runs. What are the best tools and techniques for finding out what all the memory is being used for? Usually this comes down to either unexpectedly keeping references to objects, or extensio...

How do I run a .vbs file from within Microsoft Script Editor?

Is it possible to open Microsoft Script Editor, then from within the editor open a .vbs (VBScript) file, then run/debug it? I know I can use the command-line cscript (filename) //X to launch the file, allowing me to select Microsoft Script Editor as the debugger, but I want to do everything from within Microsoft Script Editor. I am awa...

What does it mean when a js error points to a part of the viewstate?

I am fairly inexperienced with asp.net ajax and am having a problem where a javascript error is thrown (object not found). The debugger then stops and points to a substring of my viewstate it looks something like the following (not exactly this since my viewstate is huge) with the section between the ellipses highlighted: <input type="...

How to add NSDebug.h and use NSZombie in iPhone SDK

I want to enable NSZombies for my iPhone app. I have read several articles online and I am still unsure of the exact procedure. I know I have to set the Environment Variables, which I have done: NSZombieEnabled = YES NSDebugEnabled = YES NSDeallocateZombies = NO I think (I'm not sure), I have to import NSDebug.h. When I check the head...

dll size (debug and release)

I have read in other discussions that Release dlls have reduced size compared to Debug dlls. But why is it that the size of the dll I have made is the other way around: the Release dll is bigger than the Debug dll. Will it cause problems? ...

how to prevent this type of error

i am developing a jquery script. i am use this "$("a").html(" alt='example' src='example.jpg> ")" to dynamically adding a "img" tag inside "a" tag. (note, src='example,jpg has no closing single quote ). in firefox, "img" tag showed up, but in IE and opera "img" tag did not show up, so i have spent 2 hours try to find out why? then...

Biggest windbg pet peeve

What is your biggest pet peeve related to the windbg debugger from microsoft? (note: I actually really like windbg if I ignore the unpolished UI.) ...

Why does Conditional breakpoint decrease the application execution speed at debug time?

When I use conditional breakpoint in VS2005 instead of using temporary code to check specific conditions, I noticed it takes more time and the execution speed is decreased!! Do you know why? and how to resolve this issue? Exmaple: int sequence = atoi(m_SequenceNumber.GetAscii()); if( sequence == 392914)//temporary code to check...

What are your favorite Grails debugging tricks?

Grails can be a bit of a bear to debug with its long stack dumps. Getting to the source of the problem can be tricky. I've gotten burned a few times in the BootStrap.groovy doing "def foo = new Foo(a: a, b: b).save()", for example. What are your favorite tricks for debugging Grails apps? ...

Limitations with Java Hotswap

The java hotswap feature save a lot of time for me. However, it has many limitations (like schema change is not supported). Any idea if the limitation is going to be addressed any sooner? According to this forum entry, it seems to be ignored. I know that products like JavaRebel helps. But does anyone know about any open source tools for...

Global console object in Safari/Chrome being reset.

I'm working on a jQuery plugin and am trying to make a uniform, cross-browser console object for debugging. The plugin will utilize Firebug or FirebugLite but also allows the user to choose the browser's native console object, if available. For Safari/Chrome, the console methods accept only 1 argument, while the Firebug console API (whic...

How do I get Java "hot code replacement" working in JBoss?

I am running JBoss 4.0.3.SP1_CP04 and connecting to it with Eclipse 3.4.1's debugger, both using JDK 1.6.0_11. When I make a minor change to a method (e.g. changing a "+ 1" in the logic to a "+ 2") and save it, I immediately receive an error message dialog titled "Hot Code Replace Failed" with the error "Delete method not implemented" ...