debugging

Debug released managed code (.net 3.5) using a dump file

Our application started to have some strange performance problems in the production environment. Constant CPU usage, although the app doesn't seem to be doing anything, and high memory usage. We've created a dump file of the process using the Task Manager's feature. Now we're trying to debug it, but it doesn't seem to be that easy :) V...

Java Access to Local Variable Names

I'm currently writing a program in which I would like to access the variable names of local variables during execution of a program and pass them off externally. I'm aware that Java will dump local variable names during compilation unless compiled in debug mode. After looking around some, it seems that JDI/JPDA is the way to go for this...

Debugger for google appengine python.

I am developing for appengine python on windows 7. I am looking for a set up that will allow me to debug my python scripts. I would prefer a GUI based defugger as opposed to command line one. Something like eclipse provides. ...

[Netbeans / Rails] Debug after a POST request

Hi dear stackers, I'd like to debug my app step-by-step to see what happens AFTER the form submission (only via POST). The problem is the URL after submission is the same than the one before, and I do not know any way to tell the debugger to wait for the submission of the form... Any ideas ? Thanks in advance ! ...

VS2010 unable to debug Eval'ed code

VS 2010 does not seem to reliably step into evaled code. I have a debugger statement in the evaled code. In my example the evaled code is attached to a button click of the page. If I attach to IE8 after opening the page in question and click the button, VS opens a window titled "Find Source: eval code". Looking at the Solution Explor...

Get the optimizations from retail build into debug build

I have a function when unit tested takes around 15 minutes to finish in debug mode. When I run the same tests in retail mode, it takes around 30 seconds. Is there anyway I can figure out what optimizations were done in the retail build? ...

Debug Python using PDB on Windows

Hi guys, Anyone know how to debug Python using PDB in Windows XP? My system has some deadlock. I want to use PDB to track my system. My Config: VC 2005, Python2.7 ...

Visual Studio: How to stop breakpoint hit from stealing focus?

When a breakpoint is hit in Visual Studio, it steals the focus from whatever other application the programmer is viewing/typing into at that moment. This can be very irritating since VS grabs any keyboard input the programmer was typing into the other application at that moment and takes that input as its own. What are the tricks you fo...

how to get object content when debug in Xcode?

how can I get object properties (now just object references - 0x484ce00) in XCode debug tool like in the Eclipse IDE? ...

Debug AIR Application on Client Machine

I have an AIR application that is causing me problems on a single client machine, and on a specific user account. I have a debug interface that I developed to print traces to but apparently you can not get stack traces when not in a debugging environment. I am seeing "TypeError #2007" with no additional information. I tried to output t...

How to debug VB.NET calculated Function Returns without a return variable

It's often the case that I can write a nice tight little VB.NET function, and when it comes time to do the Return statement, it's really natural to just return the result of a quick calculation or a method call. However, this makes it difficult if I need to step through the debugger to see what is going to be returned from that Function...

Java RMI error in HP BSAE 2.0 configuration migration log

I'm attempting to track this issue with HP's Enterprise Support as well, but am not familiar with Java's RMI context, and am hoping the community can provide some assistance, too. Context: recently upgraded the reporting tool for HP's BSA (Business Service Automation) Suite from SAR (Service Automation Reporting) 7.81 to BSAE (BSA Essen...

boost static_assert with message?

Hi, on 1.43 boost it seems that BOOST_STATIC_ASSERT just allows to put a boolean value, is there some alternative that allows me to display a message as well on the compile error? ...

Visual Studio is not stopping on breakpoints after I installed Intel Parallel Studio ...

Hi, I installed Intel Parallel Studio v1.0, and now Visual Studio 2008 is not stopping on breakpoints. I can set them, but it skips right over them, and never breaks. Any ideas? ...

Java toString() - Do you include the classname in the toString?

Hi All. I was wondering what people put into their toString() methods in Java. I have been adding a few to some new classes and was wondering if it should include the classname or not. In the class ClassConfig I cant decide if I should have @Override public String toString() { return "ClassConfig:" + name; //frozen } or @Ove...

VS2010 Not Always Building Before Debugging

I have had a problem where VS2010 will not build my projects before debugging. Even when they have never been built before (i.e. on a fresh checkout from source control). I will either find I am stepping through on the wrong lines of code (because the symbols are out of date), or an error message if there is no build output (bin\debug ...

Help required with pthreads debugging

Hi, I have a server-client program in which there are multiple threads in both the server and client. There are variable number of clients and servers (like 3 servers (replicas), 10 clients). I am debugging a source file in this program. I think there is some kind of deadlock, possibly the following: A mutex lock is already held by a se...

C++ optimization question

Hello! I have some mid-large project that is actively using boost libraries and, hence, suffers in terms of Debug application performance (Visual Studio 2008). Solution that I use right now means turning on function inlining even in Debug mode, which brings enough performance, but should definitely have some drawbacks. Does anyone kno...

Problem with an array

Its broken into lines because each arrayWithObjects: adds a new question (its a quiz game). But how come when its NSLogged it only displays the last arrayWithObjects: line. Is it overwriting the others or something? -(void)loadQuizFromArrays{ //ALL QUESTION DATA GOES HERE /*theQuiz = [NSArray arrayWithObjects:@"question",@"possible...

Strange debugger problem?

I have created this datastructure: class Event { public: Event(EVENT_TYPE type, void* pSender = 0, int content1 = 0, int content2 = 0, int content3 = 0, int content4 = 0); ~Event(void); // ... some functions protected: EVENT_TYPE itsType; void* itsPointerToSender; int itsContent_1; int itsContent_2; ...