debugging

Problem "F5" Debugging ASP.NET Web Application Project with VS2008 on Vista

Greetings! I'm working with a .NET3.5 Web Application project in Visual Studio 2008 on Vista Ultimate. I'd rather use IIS7 than Cassini as my local test web server. I have the website setup in II7 and every thing is served with no problems. However, I'd like to use the VS debugger hooked up to F5 instead of manually attaching to the ...

DebugBreak not breaking

I'm writing a class in C++ that I cannot debug by using F5. The code will run from another "service" that will invoke it. In the past I've used __debugbreak() and when I got a window telling me that an exception was thrown selected to debug it. Recently I've updated to windows 7 and it kept working for a while. Today when I've tried t...

Delphi App Communicates with Program That Ends Up Crashing Occasionally - Vendor Blames My Delphi App

I've written a Delphi DLL that communicates with a third party program via COM. Some users report that the third party program crashes occasionally. Others using the software in an identical fashion have never experienced a crash. When this crash occurs, the third party program appears to simply become unavailable in my DLL app. The ...

How do you disallow DebuggerNonUserCodeAttribute from being placed on the code generated by the dataset designer?

Hey I would like to step thru dataset designer code in an ASP.NET project, how can i ensure that this: [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] is not included on the code it generates? ...

Why does Visual Studio 2008 ask about enabling debugging when debugging is already enabled?

I have a generated (via MSBuild) Web.config that runs prior to the Build target whose content includes, among other things, <compilation debug="true">. The generated Web.config is copied to the root and put in the Content item group. But when I run the Debug build in Visual Studio 2008 (via F5) I get the following dialog: If I select ...

Why is Visual Studio 2008 stuck in debug mode when compiling

I have a .NET project that for some reason gets stuck in debug mode. I've changed the compile mode from debug to release in the toolbar, but my project ends up in the debug directory anyway. Seems like VS is not updating the SLN file or something. Please help! The reason I am asking about this is because it seems that there are weak ref...

How to detect an unmanaged app has aborted

I have a C# app which invokes an unmanaged C++ application via Process.Start() On some machines, if this C++ app aborts, I'm left with the Just-In-Time error dialog showing Is there a way from C# to detect that the C++ app has errored and just restart it (I don't have the source to and therefore can't modify the C++ app) ...

Determine Solutions Configuration (Visual Studio)

Is there a way, in code, to determine what "Solutions Configuration" you are running in? For example, 'Debug' vs. 'Release? I have a service that I like to test in the IDE in Debug, right now I have bool that I set which either runs the 'service' if set to true (which then uses the OnStart method to run my 'main' method), if it's set t...

Visual Studio: Make debugger aware that a function doesn't cause "side effects"

I have an object i have to watch a function output of pretty many times through the watch window. The problem is that i have to press the refresh button every time i step because "this expression causes side effects and will not be evaluated". Is there any way to tag a function with something like [DoesNotCauseSideEffects] so the watch a...

Is it possible to switch to release mode automatically if I publish a vs project?

I'm obviously developing in debug mode. If I'm starting with the standard run command (F5) my project should start in debug mode but if I publish my project it should automatically switch in release mode. Is this possible somehow, maybe even with scripting? ...

__libc_lock_lock is segfaulting

I am working on a piece of code which uses regular expressions in c. All of the regex stuff is using the standard regex c library. On line 246 of regexec.c, the line is __libc_lock_lock(dfa->lock); My program is segfaulting here and I cannot figure out why. I was trying to find where __libc_lock_lock was defined and it turns out ...

Can I connect to a jsadebugd process on a remote machine from Eclipse/IDE debugger?

I have a java process running on a Linux box, but it cannot be started/re-started in debug mode. I read about the jsadebugd command and started the daemon, but I want to connect to it from an IDE(possibly Eclipse) debugger or maybe YourKit or jconsole. How can I do this? The remote JVM is 1.6+. ...

WCF: Debugging service through Terminal Services.

Hello, I'm part of a distributed development team. We all work through terminal services, accessing a remote server where our applications are located. We're working on a project in which a client application consumes a WCF service, which exposes all the business logic functionality. In our development process, a developer is often ask...

Why do I get a "member function not present" error when evaluting expressions on the VC++ debugger?

I've got a static method, MyClass::myMethod() on another DLL, MyDll.dll. In my code, I call this method, and it compiles and run fine. But when I try MyClass::myMethod() in the immediate window (or the watch window), I always get: MyClass::myMethod() CXX0052: Error: member function not present Why is that? Update: I've found out tha...

After page loads I can't execute Javascript functions that access properties from console

I have a page that loads a bunch of scripts to prepopulate dropdowns and has scripts within the html onclick events and etc. After the page loads and I open the page in the script console I can't do anything. everything is null and functions non-existent. For example there is an onClick function onclick="Popup('Seattle');". If I try ...

CSS Image Gallery Float BUG

This is new one, I'm having problem with an Archive page i've made. It seems like a fairly straight forward floated div image gallery... but for some reason the there's a bunch of line breaks randomly throughout the divs. I thought it may have been a problem with Cufon or IE.JS etc but I disabled all JS and it still bugs out. See: htt...

Can I insert debugger statements inside my Groovy code?

Both Ruby and Python have the ability of calling the debugger from code ( using the ruby-debug gem or the pdb module ). I'd like to know if something like that's available for Groovy. I'm not interested in debugging with the IDE. ...

What happens to a DLL in debug mode inside a web application with debug=false?

I understand that debug=true is a bad thing on any production server. I am currently using some dll's that are from a third party and were compiled in debug mode and wanted to know - What happens to a DLL in debug mode inside a web application with debug=false? ...

How do I debug my .net CF app on my physical device?

I am pretty new to WinMo development. I managed to write my first app, debug it via the emulators but I failed to run the debug session on my physical phone. I connected my phone to the development PC via ActiveSync, but that alone did not make my phone show up on the list among the selectable emulators. Is there anything I need to do be...

IE6/IE7 javascript console bookmarklet (not firebug lite)

What bookmarklet do you use to debug javascript / DOM on IE6? I am looking for something that has "last typed command" feature, object inspection, and perhaps DOM inspection as a bonus. I am looking for not firebug lite but other alternative that people use. ...