debugging

Netbeans Python debugger + unittest = attributeError

Running a unittest test using the netbeans debugger gives the error when reaching unittest.main: unittest.main() ', ' File "/Applications/NetBeans/NetBeans 6.7 RC1.app/Contents/Resources/NetBeans/python1/jython-2.5/Lib/unittest.py", line 767, in __init__ self.parseArgs(argv) ', ' File "/Applications/NetBeans/NetBeans 6.7 RC1.a...

WPF: How to refresh a window while debugging?

I am debugging an algorithm that is being represented by a set of ViewModels. In order to debug this algorithm I would like to redraw the View while stepping through part of the algorithm. Is this possible? (I would prefer to just repaint, not do what they call "DoEvents" to process all events.) ...

How to find business related bugs early in software development practices?

I'm working with good group of very sharp developers on one of my client's premises. We are coding correctly around NullPointerException and other exceptions, so we don't have those. But when it comes to business rules we have some mistakes and find issues when already in production. Granted we have very fast paced environment, and depl...

visual studio: configure debug to attach to process

I'm using Visual Studio 2008; is it possible to configure a project debugging options to automatically attach to a process with a certain name when hitting F5? Edit: actual macro, specifying to attach to managed code: Sub AttachToMyProcess() Try Dim dbg2 As EnvDTE80.Debugger2 = DTE.Debugger Dim trans As EnvDTE80.Tra...

Why would my application's window not show up when I run it?

Randomly and without warning (or apparent reason), VS 2008 decided to act as if debugging was working just like it always does, except for the fact that my application window never shows up on the screen. I’d been running my app from VS all morning, and I don’t see what I could possibly have changed that would make my window no longer sh...

Emacs talking to XCode

I use emacs on my mac to program in Xcode. It works really well for the most part. I double click on a file in xcode, and it pulls it up in an existing emacs window. I compile, and get syntax errors, double click, and they come up in the active emacs window. great. This is all XCode talking to emacs. Does anyone know of a way to get ema...

Debugging RubyCocoa in Xcode

I have an Xcode project of RubyCocoa and need to debug it. Leopard already comes with Ruby installed. I read that there is a need to install a debug-ruby. My question is: RubyCocoa site says that in order to debug Ruby a debuggable version should be built in the ruby source directory. Where should I build it on Leopard? Thanks, Nava ...

in php is there a way to dump "all" variable names with their corresponding value?

if the title seems too vague.. uhm i wanted to display every variable that i used to generate a page along with their variable names and values, is it possible and how? foreach($_SESSION as $varname => $value) { print "<b>".$varname."</b> = $value <br/>"; } ^the above sample is what i use to display all session variabl...

Debugging a clobbered static variable in C (gdb broken?)

...

Can I trace all the functions/methods executing in a python script?

Is there a way to programmatically trace the execution of all python functions/methods? I would like to see what arguments each of them was called with. I really mean all, I'm not interested in a trace decorator. In Ruby, I could alias the method I wanted and add the extra behaviour there. ...

Debug .NET WinForms applications under 120dpi

I currently use a VMware virtual machine (Windows XP) to debug my .NET WinForms applications under 120dpi. Very annoying. Does anybody know a way that gives me similar results under my 96dpi working environment? That is, can 120dpi mode be activated for a single process, or is there a switch in Windows Forms? ...

call stack and disassembly doubt.

Three doubts 1) Suppose I get the call stack as below user32.dll!_InternalCallWinProc@20() + 0x28 bytes user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes user32.dll!_CallWindowProcAorW@24() + 0x51 bytes user32.dll!_CallWindowProcW@20() + 0x1b bytes Now what are the bytes mentioned at the end of each function? Like for f...

Changing the order of struct members when debugging in VS2008

I am trying to align some data in a c# struct that was created in c++. I know I'm a couple of bytes off, but I can't tell where becuase VS organizes the members in alphabetical order, rather than the order the occur in the struct (which is defined explicitly). Is it possible to change the order of the display of members in the debug di...

'Invalid Argument' Error in IE, in a line number that doesn't exist

I'm getting the following error in IE 6: Line: 454 Char: 13 Error: Invalid Argument Code: 0 URL: xxxxx/Iframe1.aspx and I can't for the life of me find what's causing this. This only happens in a situation where I have a main page that has several IFrames, and it only happens when I have one particular IFrame (the one pointed...

How to configure and debug a web application using MVC and WebForms

I have an existing ASP.NET web application that I'm converting to MVC 1.0. The site started out with one goal. However, over time our sponsors are asking for more functionality and it is obvious that MVC would be our best route due to the new requirements. I've dabbled in MVC over the last couple of months and have a pretty good grasp on...

Is there an easier way than using #ifdef in C?

From what I understand assert is a macro in C and supposedly if you use it at compile time but leave it disabled then there won't be overhead (which might not be correct I don't know). The problem for me is that what I'd like to do is get all the variables passed to my function and print out that output, but only if I want debugging enab...

How to debug heap corruption errors?

I am debugging a (native) multi-threaded C++ application under VS2008. On seemingly random occasions, I get a "Windows has triggered a break point..." error with a note that this might be due to a corruption in the heap. These errors won't always crash the application right away, although it is likely to crash short after. The big probl...

unix system call monitor

how to monitor system calls for a process? ...

Debugging PHP code

What is the best way to debug PHP code? I am using Dreamweaver for PHP development so is there some tool specific to Dreamweaver? If you have used Netbeans to debug JSP or Java code, you would know what I'm looking for. ...

Is it possible to modify a string of char in C?

I have been struggling for a few hours with all sorts of C tutorials and books related to pointers but what I really want to know is if it's possible to change a char pointer once it's been created. This is what I have tried: char *a = "This is a string"; char *b = "new string"; a[2] = b[1]; // Causes a segment fault *b[2] = b[1]; //...