Hi,
I am trying to work out a code sample to demonstrate the debugging functionality in Visual Studio 2008 with C#. I'm trying to build a code sample which would have a 'not so obvious' mistake in it, which would result in unexpected output.
A non working example would be:
static void Main(string[] args) {
int a, b;
a = args...
I was looking into Valgrind to help improve my C coding/debugging when I discovered it is only for Linux - I have no other need or interest in moving my OS to Linux so I was wondering if there is a equally good program for Windows.
...
I'm about to implement a logging class in C++ and am trying to decide how to do it. I'm curious to know what kind of different logging implementations there are out there.
For example, I've used logging with "levels" in Python. Where you filter out log events that are lower than a certain threshold. It also includes logging "names" wher...
I have just ported several of our home-made Outlook COM-addins from Delphi 2007 to Delphi 2009 and am now experiencing some really weird errors (before you ask: none of which appear to have any obvious relationship to string-handling), for example modal dialogs that hang Outlook when one tries to invoke them a second time (the first time...
Hi.
I am new to C and I am using MS Visual C++ 6.0 for now.
I am currently working on sorting algorithms and i want to track the values of each variable automatically. This may provide me insight on how the algorithm does the hard work. That is, I don't want to write what is produced by what on a paper :)
Are there are any operators or f...
I'm looking for details on the DEBUG HTTP verb.
It's clear to me that this is used for remote debugging - though I'm not even sure if it's for IIS or ASP.NET...
If I want to access this interface directly - i.e. not through Visual Studio, but sending these commands manually - what do I need to know? What are the commands for it?
I'm a...
MS Access has limited capabilities to manage raw SQL queries: the editor is quite bad, no syntax highlighting, it reformats your raw SQL into a long string and you can't insert comments.
Debugging complex SQL queries is a pain as well: either you have to split it into many smaller queries that become difficult to manage when your schema...
I have a number of files which I combine and pack to produce a single, minified JS file. The problem is that when I minify the file (using packer), IE6 gives one of its characteristic helpful error messages.
Line: 12 // of course, line 12 is an empty line
Char: 1
Error: Expected ')'
Code: 0
The thing is: it works fine in IE7, Fir...
Do you use source code analyzers? If so, which ones and for which language development?
Do you find them helpful in solving potential bugs in your code? Or are most of their warnings trivial?
After prolonged use, do you find your code quality to be higher than before?
...
I think it's better to release the version of the software which your developers actually tested; I therefore tend to delete the 'debug' target from the project/makefile, so that there's only one version that can be built (and tested, and debugged, and released).
For a similar reason, I don't use 'assertions' (see also http://stackoverf...
Background Information
For saving out crash dumps, I have a script passed to cdb.exe in the Debugger value of the AeDebug registry key:
C:\progra~1\debugg~1\cdb.exe -p %ld -e %ld -g -y SRV*c:\mss*http://msdl.microsoft.com/download/symbols -c "$<d:\tgticker\Dumps\RDFD.cdbscript"
Here is the first portion of the script:
as /c CrashFir...
Is there some sort of profiling tool available? View source and search/replace?
...
Question says it all really - a lot slower than VS2005, with a noticeable (0.5 sec) delay on each key press.
It makes stepping through code a pain.
Matt
...
We use a mixture of 32-bit and 64-bit development environments. Some of our class libraries are debugged using a 32-bit application so we have debug settings for "Start External Program" and "Working Directory". The problem is that the settings need to be different
since the 32-bit application is installed to
C:\Program Files\xxx (on ...
I'm developing an ASP.NET site off of my Windows XP IIS Installation, and whenever I tell visual studio to attach-to-process to the aspnet_wp.exe it starts a new instance of asp.net development server. Is there a way to make it not start asp.net development server since I don't need it to launch anything?
...
I want to use Rhino Tools in an application (for the Binsor support). There isn't a binary release so I'm downloading the source and compiling it. It compiles the debug binaries no problem, but the release build fails.
The app that I'm developing will be deployed with release binaries, but will have to reference the debug build of Rhino...
All of this is on a windows xp box:
Netbeans managed to accept an existing rails project and allowed me to debug it just fine, but my project has a number of processing scripts that handle non-MVC aspects. The rails project is just a system for queuing requests for the execution of these scripts.
I've attempted to create netbeans proj...
If you have ever used an OpenGL debugger on Windows, which one(s) would you recommend and why?
...
I've been a software developer for over twenty years, programming in C, Perl, SQL, Java, PHP, JavaScript, and recently Python. I've never had a problem I could not debug using some careful thought, and well-placed debugging print statements.
I respect that many people say that my techniques are primitive, and using a real debugger in ...
I have this piece of code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
int main(){
void *a, *b;
a=malloc(16);
b=malloc(16);
printf("\n block size (for a): %p-%p : %li",b,a,b-a);
a=malloc(1024);
b=malloc(1024);
printf("\n block size (for a): %p-%p : %li",b,a,b-a);
}
This shouldn't display the t...