debugging

How can I change a module's checksum in a minidump?

The software that I write (and sell) is compressed and encrypted before I distribute it. Everytime I release a new build, I keep all the .map files and the generated binaries including the exe before it is compressed and encrypted. When it crashes on a client's machine I get a minidump back. I open these minidumps in Visual Studio and...

How to pass the assembly name as a command-line argument when debugging

I have an NUnit test assembly (a .NET DLL). When I click Run in Visual Studio I want it to launch NUnit and run the tests in this assembly. I can do all of that. Instead of specifying the full assembly name and path in the command line arguments, does Visual Studio support some sort of macro that expands into that for the Command Line...

Django URLs configuration debugging?

What's the best method to debug Django's url configurations? Sometime it just throw out a Unhandled Exception without any hints if there is an error in urls.py Sometimes it throws out errors like "unbalanced parenthesis" but I still dont know which line in urls.py caused the error. ...

PHP broken code on local machine but working on staging server

Hiya all, I'm having a strange issue here, i have this bit of code: <?php if ($node->nid == "1") { include 'front.tpl.php'; return; } else { ?> <div id="left-col" class="grid_9"> <h1><?php print $title ?></h1> <hr /> <?php global $user;if ( $is_admin ) { ?>[<a href="/node/<?php print $node->nid ?>/edit">Edi...

Which debuggers support step back/time machine/back-in-time feature?

If possible, describe platforms/languages/symbolic formats supported and if full support is provided (historical states back) or partially (only code can rerun with no rescue for states). Further information about performance or resources needed is welcome but optional. ...

Scrum, how to handle bugs in the sprint and how to time estimate bugs

I'm working in a Scrum project writing firmware code in C for an ASIC. Every so often we have really hard to find bugs. But how do I time estimate these bugs? I always tell the Scrum master I do not have the competence to estimate them because I really hate time-estimation of bugs. How do you guys handle this in your Scrum projects?...

java - Debug full screen app in eclipse

Hi, I'm developing a java full screen application. I would like to debug this application using eclipse debugger. However, if I put a breakpoint, my application stops, but my eclipse window doesn't popup, because the full screen application is on. Up till now, I commented out the lines which made it a full screen application, but I won...

Tips for working out why my application sometimes 'hangs' during Load

I have a (rather large) application which occasionally gets 'stuck' whilst loading - with controls half painted etc. From what I have managed to work out from logging, this happens after the end of the _Load event. The only time it happened to me when running from Visual Studio, I tried doing a pause, and it just took me to the Applica...

Is it possible to hit a breakpoint set in a javascript file with visual studio while using Firefox?

I tried setting a breakpoint in visual studio in a JavaScript file and i get a message when i hover on the breakpoint, which is: "The breakpoint will not currently be hit. The document is not loaded." I am using firefox. Is it possible to hit the breakpoint and how? ...

Prevent MSVC from creating debug symbols by source code pragma?

While compiling a large c++ program with msvc .net 2003 and with debug information, I ran into C1067, the fatal compiler error for to big or to large debug symbols. As it is in boost, and I don't want to fiddle around with the source code, the easiest thing would be, if there is a pragma or something that could switch off the generation ...

Mapping enum values to strings in C++

Is there a way to, at runtime, map the value of an enum to the name? (I'm building with GCC.) I know GDB can do it and I'm willing to use something that's unportable and mucks with debug data. Edit: I'm looking for a solution that doesn't require modifying the original enum declaration nor hand copying all the values out in a mapping...

Application hangs after a DataGridView is Populated

I have a simple form with two buttons (Start and Stop) and a DataGridView. I am trying to populate the DataGridView with the results of a WMI query that enumerates Win32_Process instances and puts all process names in the only column of the DataGridView. The code looks like this: using System; using System.Management; using System.Windo...

use VS.NET to debug application

I am using VS.NET to attach to a process, the process has a lot of DLL loaded, I built one of the DLL and try to set a breakpoint inside my DLL. I click "New Breakpoint" and type my function name Func_A and checked the "Use Intellisense to verify" box. Then I click OK but the VS.net complains that it can't find the function. When the pr...

Which tools do you use to debug HTML/JS in your browser?

I'd like to collect the best debugging aids for all browsers out there. So that would probably be Firebug for Firefox but what do you use for IE? Safari? Opera? Opera Mini? What else is out there? Are there tools that work well for IE 6? IE 5? ...

Need debug information for .NET assembly in Release

When an error occurs in any of my .NET assemblies the user just gets a generic error saying "MyApp has encountered a problem and needs to close. We are sorry for the inconvenience." I would like the user to to see the error message and line number if possible. From what I understand you need to deploy the pdb file along with your assemb...

uint as indices

EDIT: Originally I had transcribed i++ not i-- The code now is as it was, and the code in the code block compiles and works. Why, if unsigned int i; is used instead of int i; in the code snippet below, does using the function result in a segfault? void insertion_sort_int_array(int * const Ints, unsigned int const len) { ...

Do some Functional programming constructs reduce Debuggability?

I've heard that the following features reduce debuggability (because they are anonymous and debuggers cannot trace it well) Anonymous Classes Inner Classes Closures Blocks / Lambda functions Is this true? ...

What could be wrong with this?

BTW: I found the problem: (See my answer below) When I build my program at home it works fine, but when I use my universities system is crashing on me. When I go at it with GDB I get this: (gdb) r t.c- Starting program: /home/shro8822/p5/c- t.c- *--Code Gen Function: main *--in function 'main' variable offsets start at 2 Program re...

Parse error: syntax error, unexpected $end in E:\xampp\htdocs\bidding\header.php on line 15

Below is the code of header.php This file is included in another file, by require 'header.php'; . <?php if(empty($user)) { $html=<<<eod <div class="account"><a href="publish.php">Post Task</a> | <span class="boldfont"> $user</span> | <a href="../common/logout.php">Sign Out</a></div> eod; echo...

Java: Roller program - debug - variables not updating from JTextField and NumberFormatException thrown regardless of valid information.

Problems: I am unable to get the values of the JTextFields or the rollResultTotal to update. Even if the data in the JTextFields are valid, a NumberFormatException is still thrown. Questions: Why don't the variables stay? Is this due to declaration in the class itself? Is it possible to update a JLabel panel to show an updated resu...