debugging

In Django, how do I allow print statements to work with Apache WSGI?

"print" only works in development server. But what if I want it to work in Apache? Just in case I forget to comment it out...I want to be able to go smoothly without causing errors. (Just print to nothing) ...

android code to fetch data from database

ParsedNotificationDataSet result = new ParsedNotificationDataSet(); Cursor c = db.rawQuery("select * from notificationtable", null); if (c.getCount() > 0) { c.moveToFirst(); do { result.setclassurl(c.getString(c.getColumnIndex("Id"))); result.settype(c.getString(c....

ASP.NET when am I meant to build my project

Hi, Totally stupid question, but I'm writing my first ASP.NET C# web forms application and sometimes I can just write a change and save it in Visual Studio and it works just dandy, but other times it seems I have to rebuild the project for changes to take effect. Could anyone please tell me what conditions need to be met for me to rebu...

gdb\bfd: get child variable address or size or offset

Hi, I'm using gdb and libbfd to retrieve global variables information from an elf file and show it. I can get the following data from libbfd: Global Variable name, address and size. I retrieve the type of the variables and its children using gdb and gdb\MI (ptype, whatis, -var-create & -var-list-children). How can I get the address\siz...

How to "debug" Haskell with printfs ?

Hi there, coming from the Ocaml community, I'm trying to learn a bit of Haskell. The transition goes quite well but I'm a bit confused with debugging. I used to put (lots of) "printf" in my ocaml code, to inspect some intermediate values, or as flag to see where the computation exactly failed. Since printf is an IO action, do I have to...

Native threads in a .Net application

When I issued ~* e !clrstack command in WinDbg to identify the clr call stack of threads in a console application, it listed 5 threads. 3 of them are managed threads (Main Thread, Thread that I crated, garbage Collection thread (I expect)). 2 are native threads. I did not create any native threads. What do these native threads do? Where...

Load SOS extension for debugging

I'm trying to load SOS extension in visual studio 2010 (.Net framework 4) in a vb.net app without success. First i found the following article suggesting that I type "!load sos" in the immidiate window. It resulted in the following error message: Error during command: extension C:\Windows\Microsoft.NET\Framework64\v4.0.30319\sos.dll co...

How do I print an object's property to the Debugger Console in Xcode?

I have an object that was created with the Core Data code generator: .h file: @interface MyObject : NSManagedObject { } @property (nonatomic, retain) NSString * title; @end .m file: @implementation MyObject @dynamic title; @end I put a breakpoint and now I want to print the title property of one of its instances (myObject) to ...

Change the default NetBeans debugger?

Is there a way to change the default java debugger in NetBeans 6.8 ? After a few hours of work ( not debug! ), debugging becomes really slow! It takes minutes for the variables to load. ( the machine i am using is not that weak ). Cheers, Ivan ...

Why doesn't VS2010 debugger stop at my breakpoints?

I am working on a C#.NET class library project in VS2010. In my project settings -> debug settings, I have the project set to start an external program (C:\Windows\SysWOW64\wscript.exe) which runs a very simple jscript file (test.js). The script simply creates an instance of the class and calls one of it's methods. The problem is when ...

Program runs differently when I step into and when I setp over a function in debug mode

I have a function GetAlertData() that returns a Datatable. I invoke it as: var dt = GetAlertData() Behavior in debug mode: Case 1: When I do F11 all the time and go into the GetAlertData function, all works well and I get the correct table Case 2: When I do F10 on this function and step over it, GetAlertData returns a table with all...

GWT - no urls in development mode tab

What could be the reason for not showing any urls to html files while debugging the GWT project? The tab is empty, it is not possible to debug any of the pages that are stored in 'war' directory. I guess it is all about the configuration. Thank you for any hints on how to fix that. ...

Why does a .NET application prevent Windows from shutting down?

One of my applications prevents windows from shutting down if it is running. The only spot where I suspect the cause may be is FormClosing event handler, which is however quite standard: EDIT: Removing this handler does not change the situation at all so the cause is somewhere else. private void MainForm_FormClosing(object sender, For...

Debug With DROID 1 Crashes ADB.exe

Using the up to date drivers provided from the SDK I installed my DROID 1 onto my Windows XP PC. When I plug the phone into the computer it connects correctly and it displays as "Android Composite ADB Interface" under device manager. A few seconds after plugging it into the computer ADB crashes with the following error: adb.exe has en...

How to debug a IE8 client-side issues for a website?

One of my website's users is experiencing Javascript problems with his IE8/WinXP setup, with code execution apparently aborting halfway through, but there are no alert boxes or other hints as to why and I'm unable to replicate the problem locally. How can I get any information out of his system, so I can start debugging this? Just figu...

Is there a way of using breakpoints in python?

Hello all, I am just wondering if there is a way to add breakpoints in IDLE so that I can stop at a point in my script and write other lines in the idle shell for testing. If not, is there other software that can do this? ...

Issues debugging Moles

Hi I’m using visual studio 2008 and moles version 0.93. Everything works well except when I try to debug any test that uses a Moled type. The test skips all my breakpoints. And I get the following message in the output window: Unable to attach. Check for one of the following. The application you are trying to debug uses a version of ...

How does the debug 'Detail Formatters' resolve classes in eclipse?

In eclipse you can set custom "Detail Formatters" under Preferences -> Java -> Debug -> Detail Formatters to print objects in custom ways when debugging. I'd like to use a utility class to print an object using a formatter like: return com.foo.Bar.xzyToString(this); where xzyToString is a static method of Bar returning a String, but e...

Disable Registry Virtualisation for Visual Studio 2008 on Server 2008

I have a problem with a web service I'm trying to debug. There is a problem with the web service, but I don't seem to be able to get a handle on it, because when I run the same project in the Visual Studio Debugger, it can't find any relevant registry keys. They are just coming up null. When I tried listing all the available keys in HKLM...

Have one sproc that debugger won't step into (SQL Server 2008 Developer Edition on Win7x64)

I'm calling an sproc from SSMS, and that sproc calls a number of other ones. I can easily step through the outer sproc and, if I step-into, can walk through the sprocs being called. But one sproc simply won't be stepped into. Attempting to do so acts as if I stepped over it. That is, it runs without being stepped. There is nothing at al...