debugging

Why does DebugView not show debugging messages when Visual Studio does

I am developing a Browser Helper Object running inside Internet Explorer. I am writing debugging messages with ATLTRACE("..."); These appear fine when Visual Studio is attached to the iexplore.exe process, but this is slow for a quick test. DebugView captures nothing from my BHO. Why does DebugView not show BHO debug messages? Is it som...

Python: How to detect debug interpreter

How can I detect in my python script if its being run by the debug interpreter (ie python_d.exe rather than python.exe)? I need to change the paths to some dlls that I pass to an extension. eg Id like to do something like this at the start of my python script: #get paths to graphics dlls if debug_build: d3d9Path = "bin\\debug\\di...

How to get around "Binary was not built with debug information"?

I'm trying to debug a C DLL that I'm using with a Delphi program. I built the DLL with Visual C++, with debug information enabled. I built the Delphi program with Delphi 2009, with debug information enabled. But apparently they use different formats, because when I try to attach the VC++ debugger to my program, it says "binary was not...

How do I go about debugging source code on Windows 7?

I have this project that recently started crashing on beta builds of Windows 7. Something about the XAML parser going belly up. If its easy I would not mind putting a work around in place to compensate for the new .Net behaviour in Windows 7. How would I go about debugging this on Windows 7? Step 1: Install Windows 7 in a VM. Ste...

performance tuning ask for advice

Hello everyone, I found when I turn off (un-select) automatically detect proxies setting in Internet Options, my application (which involves a lot of Http based network communication) performance will boost a lot. Now I want to prove that performance issue is actually caused by automatically proxy detection. Any ideas from debugger o...

How do I debug the Eclipse Plugin error "Plugin was unable to load class"?

It is trying to load my TabGroup from the Debug Dialog but I get the error that it is unable to load my tab group class. In the "details" of the error all it says is: "org/eclipse/debug/ui/AbstractLaunchConfigurationTabGroup" Which is the class that my TabGroup extends. ...

How to isolate causes of system hang on Unix/OSX

I am on OSX, and my system is becoming unresponsive for a few seconds roughly every 10 minutes. (It gives me the spinning beach ball of death). I was wondering if there was any way I could isolate the problem (I have plenty of RAM, and there are no pageouts/thrashing). Any Unix/OSX tools that could help me monitor and isolate the cause o...

Debugging JavaScript REPL-style?

Is there any sort of interactive debugger for JavaScript? I'm imagining something like a web page on the left, and a REPL interface on the right. Or maybe even without having a web page, so I can just play around with the JavaScript language. For example, see this for Ruby: http://tryruby.hobix.com/. Something that doesn't require I re...

VS2008 Unit tests failed when you select Test- Debug- All Tests in Solution

in Debug mode the tests which throw a custom exception give an error message like Exception of type 'CustomProductException' was thrown instead of 'CustomProductException' Fail.But when I choose Test - Run - All Tests in Solution rather than Debug, all Tests pass.Why is this happening? Any pointers... ...

Preprocessor Directives

Is there a simplistic reference for all preprocessor directives? ...

Compare compiled .NET assemblies?

Are there any good programs out there to compare to compile .NET assemblies? For example I have HelloWorld.dll (1.0.0.0) and HelloWorld.dll (2.0.0.0), and I want to compare differences how can I do this? I know I can use .NET Reflector and use the Assembly Diff plugin. Are there any other good tools out there to do this? ...

Does changing the debug symbol to none improve performance in a VS compiled project?

Does changing the debug symbol to none improve performance in a VS compiled project? The default is 'pdb-only' for release mode. Is there going to be any adverse effect if I change it to none? ...

Debugging in SSIS

How do I debug .NET code written within a script task in a SSIS package? The development environment allows placing a breakpoint however does not take me to the code like it would in regular .NET programming while debugging. Also, I am at a loss to understand how to add the SSIS package variables to the debug watch window? Currently on...

My component crash (TCustomEdit descendant)

Hi, I am trying to create a component like TButtonedEdit of Delphi 2009. It is a custom TEdit that has 2 buttons in the left and right. In my version, I use 2 TSpeedButton objects for the left and right buttons. Please take a look my simple code below. It is ok to install it and I can see it in the component pallete. But, for some u...

Debug .NET Compact Framework app locally (without emulator or device)

I am currently in the preparation phase for a new project that will be developed with .NET Compact Framework (2.0 or 3.5, we'll see) and will run on a custom Windows CE 6 hardware. There is, however, one thing I can't get to work: Debugging seems to be possible only with a physical device or with the emulator. But when I just start the ...

Programatically detecting Release/Debug mode (.Net)

What's the easiest way to programatically check if the current assembly was compiled in Debug or Release mode? ...

How to debug external class library projects in visual studio?

I have a project(A) that references an assembly from an external project(B) class library that is located in another vs solution. I have yet to understand how i can efficiently debug the class library from B while running the program from project A. Is there something i have to enable on project B such as debug info etc so i can step-i...

Is it possible to attach a debugging session to a running program in eclipse CDT

I'm writing a netscape iplanet plugin (on solaris/C using eclipse) which is basically a shared object with specific entry points, and I'd like to be able to debug the shared object with eclipse's debugger (gdb). I remember doing something similar in AIX where you could make xldb attach to a running process. Is it possible to get eclipse ...

Trying to compile and debug C++ from Vim

I've been learning C++ and Allegro using Code::Blocks on Windows XP, and recently felt like learning Vim. However, I have no idea how to compile a program "manually" (i.e., without using an IDE). For compiling from within Vim, I have gotten as far as setting the makeprg to gcc, but I understand I also need a makefile. What is that and h...

"Breakpoints cannot be set and have been disabled" Problem

if i add Breakpoint in a vc++ 6.0 project ,if i start debugging ,then it display error message "One or more breakpoints cannot be set and have been disabled , Execution will stop at the beginning of the program" and it shows disassembly window. so what kind of problem it is plz any body help me how can i add breakpoint and start th...