debugging

Python object inspector ?

Hi, besides from using a completely integrated IDE with debugger for python (like with Eclipse), is there any little tool for achieving this: when running a program, i want to be able to hook somewhere into it (similar to inserting a print statement) and call a window with an object inspector (a tree view) after closing the window, t...

Debugger question

I have a bug I am chasing (I think its a deadlock). When I run the code it hangs without the debugger flagging an error, so after a while I try pressing the pause (break all) button. The debugger then reports "The process appears to be deadlocked...". I then can see that all the threads are held up at lines saying EnterCriticalSection ex...

Why doesn't Visual Studio break on exceptions when debugging unit tests?

When I attempt to debug a unit test that fails because of an unhandled exception in my code, I expect Visual Studio to break on the unhandled exception so I can inspect the code and isolate the problem. Instead, the IDE instantly exits debug mode and the test is listed as "Failed", leaving me to consult the test result's stack trace to ...

Print multiple variables with one command in jdb

How can I print multiple local primitives with one command in jdb (verison 1.4)? I've tried: print v1, v2, v3 but that only prints out the value of v1. Any suggestions? Edit: Effectively I need a watch in jdb. ...

How can I quickly check ASP.NET memory footprint?

When debugging an ASP.NET app in VS, is the WebDev.WebService.EXE process (viewable in Task Manager) a good indicator of memory footprint? ...

CSSFriendly NullReferenceException

I'm debugging a project, but an error occurs and VS2008 is not showing me the line. Instead, it just show on the browser the Exception Message and Stack Trace as if I were running w/o debug. System.NullReferenceException [NullReferenceException: Referência de objeto não definida para uma instância de um objeto.] CSSFriendly.GridViewA...

How to edit a watch expression in visual studio 2008 with the keyboard?

In visual studio 2008, when the focus is on a watch expression in the watch window, how can I edit this expression without double-clicking the mouse? In visual C++ 6, it was the obvious: the F2 key. This is the consistent Windows behavior in listviews, e.g. for renaming a file in Explorer, editing a cell in Excel, etc. For some reason ...

Issue debugging custom culture

I am having an issue with a custom culture when debugging on my local machine. I have a web site that has a separate resx file for internal vs external users (terminology is different) We implement this using a custom culture en-GB-external and associated resx. Internal clients would use the en-GB resx file. On one PC when debugging, I...

Debugging mergesort

I need to sort a doubly-linked list. According to the almighty wikipedia, mergesort is the way to go for that. The recursive algorithm works reasonably well, but as I'm writing a general-purpose implementation, performance might be an issue. Porting the iterative version for arrays will kill performance as rescanning the list to divide...

PHP escaping error reporting with @

I am currently refactoring some code for work and I have come across some function calls prefixed by the "@" symbol. As I understand it, this is intended to escape PHP error reporting if the call fails. Is this type of thing good practice? I understand the rationale in a development environment but when the site is pushed to production...

C# code only gives expected results on step through?

Ok so I have a dice throw app... When I step through the code it functions normally and 'results' contains the correct number of throw results and they appear to be random, when I leave the code to run and do exactly the same thing it produces a set of identical numbers. I'm sure this is a logical error I cannot see but fiddling with i...

Observing a custom matrix class's content in Visual Studio 2008 debugger

Hi everyone, I'm trying to display the information from a custom matrix class in Visual Studio 2008's debugger by enhancing/modifying the file autoexp.dat. The custom class goes as follow : LVSN::Matrix<T> { ... functions ... struct base_mat { T **Val; size_t Row, Col, RowSiz, ColSiz; int Refcnt; T Err; ...

What's the best way to discover why threads are being created in my C++ app and what they do?

I am doing an audit of a C++ app running on Windows, compiled against multithreaded debug DLL. It has a lot of third party dependencies which can spawn threads. I need to track why each thread is there and how much stack space it is allocating. What is a good way to trace back to the start of a thread's creation so I can see where it ...

.Net 2.0: Help troubleshooting a System.AccessViolationException. 100% managed code.

This is kind of repeated from my previous question, although the objective of my question is completely different now. I'm getting, now and then, about once a week, only in my development machine, a System.AccessViolationException in a web app I made. Since my machine is having a few things that don't work quite well (like a blue scree...

Stepping over method without symbols - How to step into?

Using Visual Studio 2008 SP1 and a VB.NET project; I have some code which i cannot step into. The Immediate Window shows the message "Stepping over method without symbols 'Some.Namespace.Here'" How can i make sure the method always has symbols?! I need to step into every line of code. I am pressing F8 (which is "Step Into" in VS2008, f...

stepping into MACRO in VC++

I am debugging a source code that has a lot of big #define'd MACRO routines. I am interesting in stepping into them, but I guess, VC++ does not allow step-in functionality ... so, I am converting them into functions, but this is becoming hard for me Is there a way to step into MACRO routines? especially in VC++? PS: I can port the w...

WPF Dragging causes renderer to stop

I'm having a problem with my WPF app, where any sort of drag operation stops the UI from updating. The issue seems periodic, as in, the item drags, stops, drags again, stops, etc. in 2 second intervals. It's affecting all controls, including scroll bars. If checked this question as well as this one, and it doesn't seem to be caused by w...

How can I get the correct symbols for microsoft's dlls\assemblies if I don't have an internet connection?

I can't connect the computer to the internet because of security reasons. therefore, I can't use the symbol server. I've installed the symbols pack for windows xp sp2 but some of the PDB's do not match the dlls installed on my machine (I guess it's because of some specific updates that were installed on my machine). as it seems, the onl...

Suppressing default output from gdb when stepping between instructions

When I step through a debugging session with gdb, it prints out some information for me. How do I stop this. Here's an example: Breakpoint 1, 0x100000d4 in ?? () (gdb) si 0x100000d8 in ?? () (gdb) si 0x100000dc in ?? () (gdb) Here I want to remove the lines that say 0x100000d8 in ?? (). I can't find anything in the documentation about...

Debugging Issue

I am not able to debug asp.net application in asp.net 2.0 Whenever I hit F5, it will wait for few minutes then show following message. Unable to start debugging on the web server. The operation has timed out. Edit: I also want to let you know that before posting this question I searched a lot on google and find out some key points lik...