debugging

Intellisense not showing up for new controls in code behind

Hi- I've added a label control to a webform. It appears when I run the page but when I try to reference it using the codebehind, I get no intellisense and the code I write somehow doesn't work. I've verified the project is running in debug, that debug compilation is set in the web.config. In fact, I can debug all pages. However, when i g...

Debugging a Web Application in Visual Studio 2008

When my colleague debugs a web application in his visual studio instance his output window streams all of the assemblies that are being compiled, (at least I believe that is what it's doing) but mine does not. I do see the text "Ready" flashing down in the status bar intermittently which I believe is something similar to what is being du...

Can't debug - "The breakpoint will not currently be hit. No symbols have been loaded for this document"

Hi- I'm getting the error in the subject line. I'm running vs2k8 on server 2k3sp2. I've tried deleting the pdbs, cache directories, verifying that debugging is set up on the specific page. The interesting thing is other pages debug just fine. Just when I go to this one page. Must be a configuration issue but the page directive looks like...

How do you debug Mako templates?

So far I've found it impossible to produce usable tracebacks when Mako templates aren't coded correctly. Is there any way to debug templates besides iterating for every line of code? Edit: Per the comments, it seems switching to Jinja2 might be the best solution. ...

Program Slicing in VS 2008.

Anyone have any ideas or experience using program-slicing techniques for debugging OO projects in MS Visual Studio 2008? Tool suggestions would be helpful. ...

Any real world experience debugging a production functional program?

I'm interested in what tools and methods are used for diagnosing flaws in large scale functional programs. What tools are useful? My current understanding is that 'printf' debugging (e.g. add logging and redeploy) is what is typically used. If you've done debugging of a functional system what was different about it then debugging a ...

Is it possible in .Net to call some code only from debug builds of client assemblies?

I am writing a (very small) framework for checking pre- and postconditions of methods. Entry points are (they could be easily be methods; that doesn't matter): public static class Ensures { public static Validation That { get { ... } } } public static class Requires { public static Validation That { get { .....

Printing Java collections nicely (toString doesn't return pretty output)

I wish to print a stack object as nicely as the Eclipse debugger does, ie [1,2,3] etc. printing it like so out = "outout:"+stack doesn't return this nice result. Just to clarify. I'm talking about Java's builtin collections I can't override their toString. How can get the nice printable version of the stack? ...

What do you use to debug JavaScript besides Firebug?

What are your favorite JavaScript debugging tools besides Firebug? Thanks, Eric Duplicate: http://stackoverflow.com/questions/103155/javascript-debugger ...

Remote Debugging in Visual Studio (VS2008), Windows Forms Application

Hi I'm trying to Remote Debugging a Windows Forms Application (C#), but i'm always getting this error: Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named 'XXX. The Visual Studio Remote Debugger on the target computer cannot connect back to this computer. Authentication failed. Please see Help f...

How to debug "Unexpected debug information initialization error -- 'Failed to find a required export in the runtime.'"

I'm getting this error message on all projects (including brand new empty templates) I'm trying to build with Visual Studio 2008: Unexpected debug information initialization error -- 'Failed to find a required export in the runtime.' The Error Help for Compiler Error CS0040 is not very helpful: This error can occur when u...

USB drive with debugging tools

I'm putting together a USB drive that should contain tools useful for troubleshooting various software problems encountered by users. What tools would you recommend that I include? Main environment: Windows and .NET ...

Visual Studio Filter Debug Output

I have some code that causes a bunch of exceptions (which can safely ignored) but it floods my debug output window. It always has the same form and would be easy to filter out. How do i write a macro(?) to filter out these lines in realtime ...

Trace and Debug statements.

Im a little confused over how to use the .NET Trace and Debug classes. Why would you bother using Trace instead of Debug? Trace.TraceError() Trace.TraceInformation() Trace.Assert() Debug.WriteLine() Debug.Assert() Also, I understand that Debug statements are ignored when your in Release config mode, but If trace statements apply all ...

Debugging C++ lib with eclipse

Hi Guys, I am working on project in Linux which involves 1) Static Lib in C++ 2) GUI developed in C++/QT which uses static lib. Now both the lib and gui are build from command prompt using makefiles. I am trying to debug both like when I hit one button, call should go from GUI to lib. Is it possible to do like this in Linux with ecli...

GNU Compiler Debug 'Level'

While browsing the various option switches for my compiler (GNU C++ 3.2.3 is supported by my organization for my given hardware configuration), I ran across this: -glevel : Level 3 includes extra information, such as all the macro definitions present in the program. Some debuggers support macro expansion when you use -g3. I compile...

Debug.WriteLine() happening twice when running tests

I have an odd problem in VS2008 running unit tests. When I run the unit test using either Resharper or TestDriven, in either normal or Debug mode, the Debug.WriteLine("foo") lines are being carried out twice: ie. in the Output window of VS I can see each line written twice. If I step through the test, however, each line seems to be carr...

Debugging issues

Hi, I have a certain application in MSVC6.0 all C code. I have it as two workspaces : 1.) First workspace creates a static library file, *.lib after compiling the source. 2.)Second workspace has a test application(main()) and links the previously generated *.lib library and creates and exe. When i try to single step the test appli...

How to trace a NullPointerException in a chain of getters

If I get a NullPointerException in a call like this: someObject.getSomething().getSomethingElse(). getAnotherThing().getYetAnotherObject().getValue(); I get a rather useless exception text like: Exception in thread "main" java.lang.NullPointerException at package.SomeClass.someMethod(SomeClass.java:12) I find it rather hard to ...

Win32: Graphical debugger that supports symbol server?

i'm trying to debug a program, that i don't have the source code for: explorer.exe It's a native Win32 application from Microsoft, and symbols are avilable. All i need now is a (graphical) debugger that supports symbols. OllyDbg is a graphical debugger, but doesn't support symbols. Delphi is a graphical debugger, but doesn't support ...