I've run into a very odd bug today. I have a button on a form, clicking it causes a grid on my form to be populated with data. If you click the button twice, it crashes with an 'Object reference not set to an instance of an object.'
I ended up placing a breakpoint at the start of the Sub that handles the population of that grid and I ...
I'm looking to squeeze some more speed out of my build and was wondering if I could instruct msbuild to not generate PDB files. I'm passing the Configuration=Release and DebugSymbols=false property with no luck.
...
I think this is a situation every java programmer runs into if they do it long enough. Your doing some debugging and make a changes to class. When you go to re-run the program, these changes don't seem to be picked up but rather the old class still seems to be running. you clean and rebuild everything, same issue. Sometimes, this can...
In python when running scripts is there a way to stop the console window from closing after spitting out the traceback?
...
How do you debug lua code embedded in a c++ application?
From what I gather, either I need to buy a special IDE and link in their special lua runtime (ugh). Or I need to build a debug console in to the game engine, using the lua debug API calls.
I am leaning toward writing my own debug console, but it seems like a lot of work. Time th...
Exact duplicate:
http://stackoverflow.com/questions/780961/gdb-gnu-debugger
#include <pthread.h>
#include <stdio.h>
#define NTHREADS 4
#define N 1000
#define MEGEXTRA 1000000
pthread_attr_t attr;
void *dowork(void *threadid)
{
double A[N][N];
int i,j;
long tid;
size_t mystacksize;
tid = (long)threadid;
pthread_...
I am trying to enhance my Logger class with some conditionals to control what to log and where to log. I've got two kinds of logging functions:
public static class Logger
{
[Conditional("Logging"), Conditional("VerboseLogging")]
public static void Log(string msg, string filename)
{
// log to file
}
[Conditio...
Is there any way to debug a single file in Visual Studio.NET?
I'm still a noob with C++, but I want to start learning how to get comfortable with the debugger, and as of right now I am writing really small files.
It seems if there is only one source file, it won't let me debug, but the moment I add another one, I can. I am using VS.net...
Hi,
I'm looking for a tool that will enable me to debug JavaScript within IE6. What I mean is that I would like the debugger to run within the browser, a la Firebug.
So far I've tried:
DebugBar
Companion JS
Firebug Lite
However, I can't figure out how to set breakpoints, step through the code, add watches, etc. using any of them....
I am not sure why I cannot get simple output cache to work and not sure of how to debug a situation like this.
Simply from looking at examples and previous projects I have worked on, I used the following code:
<%@ OutputCache Duration="100" VaryByParam="id" %>
but since that didn't work I tried VaryByParam="*" and VaryByParam="none"
...
Is it possible to add messages to the built-in error console of Firefox from JavaScript code running in web pages?
I know that I there's Firebug, which provides a console object and its own error console, but I was looking for a quick fix earlier on and couldn't find anything.
I guess it might not be possible at all, to prevent malici...
Hi folks,
I'm working on catching a seriously insidious bug that's happening in my code. The problem is, the bug is completely random and can happen either 9 minutes into the application's runtime or 30 minutes. I've gone ahead and added the fabulous PLCrashReporter to my project (http://code.google.com/p/plcrashreporter) and that works...
what is the best way to remote debugging .NET on server without install VS?
...
Hi there,
I know that running applications in DEBUG (build configuration) thru the visual studio adds a level of overhead but I have a WPF application that I am testing out that is painfully slow in its execution and other functions such as drag/drop of items. When I run the application in Release mode it performs like one would expect...
I've been having some trouble with vs2008 SP1 running in debug mode when I try to disable checked iterators. The following program reproduces the problem (a crash in the string destructor):
#define _HAS_ITERATOR_DEBUGGING 0
#include <sstream>
int do_stuff(std::string const& text)
{
std::string::const_iterator i(text.end());
r...
Does the Silverlight Control Toolkit have debug symbols available anywhere? I know the source is distributed and I could just build that and reference the newly-built assemblies and their symbols, but that's lame.
...
What is the point of putting asserts into our code ? What are the benefits of assertive programming ?
private void WriteMessage(string message)
{
Debug.Assert(message != null, "message is null");
File.WriteAllText(FILE_PATH, message);
}
For example we can check the message variable and throw an exception here. Why do I use as...
Hi,
VS2008.
I have an MVC app and I dynamically rendering html
for a control I am building.
I have written some javascript and put in a .js file.
My master page has a refernce to my jquery js file.
A user control then calls my code to render html.
My js file uses JQuery.
When i debug i am getting an "undefined" error when printing...
While I am aware of the differences between debug and release builds, I am curious if attaching the debugger to a process (built release or debug) changes that processes behaviour?
For reference, I'm developing on HP 11.31 Itanium but still am curious for the general case.
...
Is there a good debugging tutorial for VS 2008 (C#, more precisely)? I have found a good deal of resources on the web, but they are still lacking a comprehensive, step by step, approach. Would you have any suggestions?
...