debugging

Qt Creator: how to debug and watch widget's properties?

Hello, I have a form and several widgets on it. Say, I have the following code and breakpoint on this line: ui->labTitle->setMinimumHeight(64); And I would like to know which height the labTitle has now. Where and how??? If I try to add ui->labTitle into watches list it says it doesn't know what is it. Maybe I need to adjust some debu...

Debug/visualize database query internal mechanism

I wonder if some open-source SQL database servers have a possibility, how to find out (maybe even in graphical representation), what actually happened inside during the query (e.g. whether table scan was used, or if and which index(es) were used..) step-by-step. It would be useful for database optimization. ...

Chrome: Uncaught SyntaxError: Unexpected end of input

I have this project that i been working on its still in development. but i just uploaded it to a free host just as a test run before i get a paid host. Here is the link http://laurent.0sites.net/. Here is the problem when using Google chrome i get a syntax error : Unexpected end of input. i have no idea what is causing this any help woul...

VS2008 Cannot debug web site anymore

Hi, I can't debug my web site anymore in VS2008. I can set breakpoints and it stops at them. I can "move" the next instruction locator. After running string foo="foo"; I can give a new value to foo using the spy. But I can't rewrite this line as string foo="another value"; The debugger starts complaining about lack of source code or...

DebugDiag shows weird data in an Analysis file

Could you please explain why I have so weird results in my Analysis output got from DebugDiag x86 v1.1 on Win7? Heap Summary Number of heaps 41 Heaps Total reserved memory 103,948,920.51 TBytes Total committed memory 190,850,373.51 TBytes and so on. Obviously, I have no so many RAM. I've already apply a fix...

How to enable WCF message logging from code instead of the application configuration file.

I am communicating between two processes using WCF. By default this produces very obscure and simple error messages when something goes wrong which are not very helpful. On http://msdn.microsoft.com/en-us/library/aa702726.aspx I found out how I can enable more detailed logging. Unfortunately this seems rather static. I would like to do ...

Visual Studio 2010 - Break on anything that changes an object property

Is it possible in Visual Studio 2010 to break on anything (a method for example) that changes an object's property? Or is it possible to find out if object properties changed in an ASP.NET Webforms application? ...

Trace calls to external assembly to create correct unit test

I am linking my application to a 3rd party library. Now I have found a bug within this module and I can even reproduce it in the application. To make an example for the developers of this module I am now doing a unit test but the error does not show up. Then I discovered Tracepoints in Visual Studio. Is there a way to trace all calls go...

Intent.getData() is null when trying to read contact data on device

I am writting my application using api 1.6. The code runs just fine on the emulators 1.6-2.2. But when I try to debugging it on my device which runs 2.1 data.getData() returns null. I have this in the AndroidManifest.xml <uses-permission android:name="android.permission.READ_CONTACTS"/> Any one have any thoughts. I am new to android, ...

VS2010: debug WCF service invoked asynchronously

I have a WPF client in the same solution as my WCF service: WPF client invokes service asynchronously but breakspoints set in the WCF service implementation are not hit. WCF service is in a project of type "WCF service library". It has "Start WCF service host when debugging another project in this solution" checked. I notice that indeed...

Windbg with xp embedded, ntdll.dll symbols fail, other symbols affected?

I am using windbg with xp embedded. Attempting to fetch the operating system symbols fails with the message "Symbol file could not be found. Defaulted to export symbols for ntdll.dll". (Is this typical for xp embedded???) I have no problem locating and loading symbols and source for my own code. However stepping through the code suggest...

Eclipse Hover over variables in debug not showing contents

At a break point my Eclipse used to show me the value of a hovered variable, now it only shows the type name. How can I turn that back on? ...

how to access url helper in zend from the models

is there an easy way to access the url helpers from the models like the ones available in the controllers i mean in the controllers there is an easy way to generate urls like this : $this->_helper->url(controller,action,null,params); now what i need is an easy way to pass urls direclty from the model to the views , for now what i am d...

Leaving Windows Console windows open after process termination

Is there an OS or user-account level modification for windows 7 that I can use to leave the console window of terminated processes open? Background: I like to use console programs for simple tests. These things tend to need debugging and analysis, and the easiest way to do that is to use printf or equivalent - that's available in prett...

How can I get one of my Preference Specifiers in the Settings Bundle to default to YES?

I've got a weird one when I test on the iPhone... I have a settings.bundle that has a Boolean for background_sounds which is set to YES by default. The problem is, when the app loads first time, the background_sounds pref seems to be set to NO when checked. I've tried synchronizing NSUserDefaults and everything, but the only way of makin...

How do I debug an uninformative error message in apache/php?

Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0 Is the error message, as far as I can see I don't have it in my code/.htaccess file ...

Getting a thread dump from a frozen Java app without using JStack

When I am trying to use JStack to get the thread dump of my frozen application, one of the threads gives me this result: Thread 27560: (state = IN_NATIVE) - org.eclipse.swt.internal.gtk.OS._gtk_adjustment_changed(int) @bci=0 (Compiled frame; information may be imprecise) Error occurred during stack walking: java.lang.NullPointerExcepti...

MSIE Developer Toolbar Style tab empty

I'm trying to debug my app using MSIE Developer Toolbar in IE8, but I also need to see how does it work in IE7. It's feature of browser and document switching comes handy in this case, the problem is that whenever I hit refresh button (in dev.toolbar, not browser) to reload DOM and CSS information (because they're dynamic and not refresh...

debug nhibernate original release

I downloaded the binaries of nhibernate from their original site, if i get the source code, can i debug their binaries?? what I mean : I don't want to rebuild the source code and take the binaries to the project and then debug them. BTW they don't provide a pdb files with their binaries. i just want to link my source code to the already ...

Java / NetBeans - How to Step into a jar file?

I have a Java project in Netbeans with several jar files listed in its library section of properties. I found a bug in one of the jar files and I want to step into it while debugging. Here's what I've done so far: I've found the source code for the jar file. I opened that source as a project in NetBeans (it comes as a NetBeans projec...