debugging

pdb show different variable values than print statements

Hi, everyone. I am debugging a python module with homemade c extensions. The output seems correct when I print it with 'p' in pdb. But if I use a normal print statement or pickle it, the output is wrong. What could be causing pdb to show different values than normal execution? I can even step to the print statement in debug mode, an...

How do debug header file implemetation (its .cpp) in c++ using GDB

Hi, I have these 3 file in my program: sample1.h (method in sample1.cpp are defined here) sample1.cpp (all the actual implementations) demo.cpp (I am using the methods in sampe1.cpp here, and have included sample1.h) Now, I am using GDB to debug and I know the basic commands like "break lineno." or "break methodname". But, how do I...

Problems using xcode in debug mode with Core Plot

I'm having a problem compiling an application which uses Core-Plot in debug mode. It works absolutely fine compiling in release mode, but when I compile in debug mode I get an error that the header file for Core-Plot can't be found. Any idea which of the many settings in x-cide might be causing this problem? ...

Unexplained crashs with coregraphic

Hello there, i'm on this bug for a week now, and i can't solve it. I have some crash with coregraphic calls, it happen randomly (sometimes after 2 mn, or just at the start), but often at the same places in the code. I have a class that just wrap a CGContext, it have a CGContextRef as member. This Object is re-created each time DrawRect(...

Troubles with my open id provider. How to debug ?

I have my own openid provider on my website, with phpmyid. It worked flawlessly until now, but apparently now it's not working anymore. I am unable to login anywhere I tried. How can I debug what's going on, to understand where's the problem ? I can add more details if required, but if I can figure it out by myself without having to pas...

What IDE do you recommend for Ruby on Rails on Windows with Cygwin?

I want to be able to use this IDE to step though code and debug. So far I have found: "e" Text Editor (http://www.e-texteditor.com/) $34.95 Arcadia (http://arcadia.rubyforge.org/) Has anybody ever tried either of these and how are they? Or anything else you can suggest? ...

Visual Studio Symbols stored/loaded from wrong place

Hello, I'm rather new to symbol servers and I've been experimenting with them and Visual Studio 2008 running Windows XP(SP3). I've encountered a wierd problem as my symbols are not being cached locally in the directory I've specified all the time. The possible reasons I have found for this si that the symbols(.pdb's) are being written t...

Breakpoint when variable takes on a certain value.

I have something analogous to the following code... void function(int x) { // complicated operation on x blah blah } It all appears to be working fine except when x happens to be a particular value, say "273". But x being 273 is a rare event, 99.999% of the time it is some other value. Now I wish to observe the events whe...

Unreachable breakpoint at execut(able/ing) code

I've got two DLLs, one in written in native C++ and the other in C++/CLI. The former is injected into a process, and at a later point in time, loads the latter. While debugging, I noticed that the native DLL's breakpoints were functioning correctly while the other's weren't, even though its code was being executed. The breakpoints show...

Debugging stored procedure in SQL Server 2008 Management Studio

Hi everyone, I have a stored proc I'd like to debug in the SQL Server 2008 management studio. I see a number of tutorials about doing this, but the ones I've seen don't have any input parameters going into the SP. My SP has several, and an output parameter as well. Could someone show me how to do debug a stored procedure with paramet...

Pylons error "No object (name: request) has been registered for this thread" with debug = false

I'm unable to access the request object in my Pylons 0.9.7 controller when I set debug = false in the .ini file. I have the following code: def run_something(self): print('!!! request = %r' % request) print('!!! request.params = %r' % request.params) yield 'Stuff' With debugging enabled this works fine and prints out: !!!...

Java web-app debugging not possible due to direct undeploy on debug

When i try to debug my webapp it starts up the tomcat server and the application, but shuts down the debugger shortly before the app gets usable. I see the debugging toolbar for a second before it vanishes again, though the app keeps running. Tomcat-log: Listening for transport dt_socket at address: 11555 23.03.2010 01:24:35 org.apach...

Error running openjdk with remote debug flags

I'm trying to run Tomcat on openjdk compiled on Redhat. It works fine as long as I run it without remote debug options. When I try to run it with remote debug enabled -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n, the JVM doesn't start and shows the error message: NPT ERROR: Cannot open library Sun JRE with the ...

Graphical database monitoring tool for debugging

I would love a tool that in real-time showed changes in a set of predefined tables in a graphical way, for example different colors on fields that has changed value, added records, deleted records etc. I don't want a list of all transactions (like SQL Server Profiler), instead a clever visualized more graphical approach where you can get...

How to step through debug twisted?

I'd like to be able to debug Punjab, a twisted python application, in Netbeans so that I can step through the code. How can I do that? Alternatively, how could I do it in a different debugger? ...

Setting a breakpoint in a T4 template

I'm trying to debug the execution of a T4 template in Visual Studio 2008. All the information I'm finding on debugging T4 templates in Visual Studio 2008 say that you can set a breakpoint (red dot) in the template as if it were a regular code file. I have the Clarius T4 code highlighter installed, so my T4 template is colored, but I ca...

Can somebody tell me why this Jquery tooltip is not showing up?

<link rel="stylesheet" type="text/css" href="jquery-tooltip/jquery.tooltip.css"/> <script type="text/javascript" src="jquery-tooltip/jquery.tooltip.js"></script> <div id="baby" title="My tootip">The text</div> <script type="text/javascript"> $(function(){ $('#baby').tooltip({ track: true, delay: 0, showURL: false, s...

How do I print all the queries in Magento?

Hi, is it possible to display all the query strings in Magento? I really like to see what queries are executed. Thanks ...

How to debug into internal c code of PHP?

Has anyone here tried it or is it possible? I've been using PHP for quite a few years but never know exactly the underlying c scripts. Is there a way to go into it? ...

Ruby rail debug output

Hi all: I am just starting to write ruby rails. I wrote a controller but is getting wrong number of "arguments (1 for 0)" error, I can't understand why. It has no information on where the error occurred? It has a full list of stack traces but my controller file is not in there! In my controller I have just two methods, that I was going...