debugging

What is the best alternative IDE for Delphi (.NET)

I work in Delphi 2007 (both win32 and .Net) but the CodeGear IDE frequently annoys me, so if possible I'd like to find a replacemnt. We have a build script so I can compile from the command line and I very rarely do any GUI designing, so the only thing I need is a text editor (with syntax highlighting, Autocomplete/Intellisense ...). I...

How to script the java debugger command-line tool (jdb)?

How can I drive the debugging session with some scripting language like ruby? Is there any easier options than using Expect or some similar module with a scripting language? ...

How do you get console input and output in a Windowed C++ project?

I would like to make a debug system in C++ where I can get input from a console and output. Output is the most important, but I would also like to get input to be able to change settings during program execution. Does anyone have any good methods on solving this dilemma? ...

Tab Bar Issue: -[UILayoutContainerView hash]: message sent to deallocated instance

I seem to be dealloc'ing something like the tab bar itself, navigation controller, or ???, and this happens when I go to a particular view controller and then hit the tab bar to a specific tab (eg, if I hit the middle tab, of 3 tabs, no problem, but if I hit the rightmost tab I get the crash). My program is basically complete and I have ...

Visual Studio won't make debug DLL

Visual Studio won't make a debug DLL when I select Debug for the configuration. Instead it makes a release version. The output window show it's making a release version, even with a Debug configuration selected. The release DLL it produces has the current date. When I save the project in the Debug configuration and reload it, it has ...

Trace MS Access DB activity

I have an Access application with a SQL server back-end, mixed with quite a few DB objects local to the Access app. I've tried running SQL Profiler, but I got very little except a cryptic sp_execute 2,4288,4289,4290,4291,4292,4293,4294,4295,4296,4297. I would like a trace tool that is local to the Access DB, so I also pick up any activ...

What tool can I use to find out what JavaScript events are being called when leaving a web page?

I have a set of pages that have tons of JavaScript on it: Table sorting, AJAX calls, autocomplete, dynamically hiding and displaying areas of the page, etc... The problem that I am seeing is when the data on said page gets large a delay (browser freezes) is noticed when leaving the page. This delay happens when the user clicks away, clos...

Pre-Processor directives in C#

I seem to be having trouble with preprocessor directives in c#. I've created a Visual Studio 2008 C# win forms app. I add this: #if (DEBUG) textBox1.Text = "in debug mode"; #else textBox1.Text = "in release mode"; #endif And when i run in debug i see the expected "in debug mode". However when i switch to Rel...

VS Code Execution Different than Code File

Has anyone ever been debugging in Visual Studio and it appears to execute different code then the code that is being stepped through? Sometimes it even steps into what appears to be white space in the file that is being stepped through but VS is executing something anyway? I've had this happen several times, once someone had me clear s...

What does the csrss.exe process do?

What is the purpose of the csrss.exe (Client/Server Runtime Server Subsystem) on Windows? Maybe someone could give a good explanation or pointers to documentation? Unfortunately Google results are pretty noisy when searching a core process of Windows. The reason I'm asking is that I got a BSOD from my service application which seems t...

Can you print JavaScript variables from a Visual Studio 2008 Tracepoint?

After learning about how to print out debug messages using Visual Studio's Tracepoint feature, I was curious to see if it worked in JavaScript files. So far, it does and it doesn't. If I am editing a .js file in VS 2008, I can click on the margin to create a breakpoint. I can then right-click the breakpoint and select "When Hit" and the...

System.UnauthorizedAccessException in mscorwks.dll causing app pool crashes

My app pools keep randomly crashing in IIS 6.0 MS Debug Diag points to kernel32.dll every time. The entry point is always mscorwks!CreateApplicationContext+bbef and the result is always a System.UnauthorizedAccessException. Stack Trace: Function Arg 1 Arg 2 Arg 3 kernel32!RaiseExc...

Any way to see Debug output without Visual Studio?

Using MFC's TRACE macro or OutputDebugString from the Windows API, you can write to the output window of Visual Studio. Is there any way to see this output on a system where you don't have Visual Studio installed, and don't want to install it? ...

int i = 2; // what do you use as a throwaway line when you just need something to breakpoint on?

Whenever I want a breakpoint someplace where there isnt anything to break on just (inside a loop, &c), I tend to automatically drop down a: int i = 2; I'm curious what others use. ...

Favorite Valgrind Options

I usually use this: valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./mycode But not sure if on one hand it checks everything, on the other hand too verbose. What's your favorite option? ...

Making VB.NET debugging like C#

I've programmed in C# for the majority of my .NET career - now I'm working on a VB.net project - when debugging it drives me insane the differences of how the debugging works. two off the top of my head are 1) having to prefix my immediate window queries with ? 2) not being able to mouse over a GUID, I have to ?myGuid.ToString() to ac...

What's your favorite way of testing javascript code snippets?

What's your favorite way of testing javascript code snippets? I like to use the browser's address field directly: javascript:void(document.getElementById("textbox").style.display='none')) javascript:void(document.write("Testing")) javascript:alert(parseFloat("33.33")) If using the latter trick, don't forget to wrap everything in a vo...

When publishing an ASP.NET application, should I change the build type to Release in the Visual Studio Configuration Manager?

For my production sites I usually change the "debug" flag in the Web.Config to "false". But I always publish my sites with the Configuration Manager set to "Debug". Should I change this setting too? ...

Can't Debug Android Applications

I've tried to debug the android applications on emulator and than on the device as well but all the time I get the message "Wait for debugger - waiting for the debugger to attach to the process". I really don't know how to set the environment and the application in order to run the debug. I Would really appreciate if anyone of you coul...

Choosing a PHP Debugger

A couple months ago I learned of Xdebug, started using it, and now I can't imagine living without a debugger. Somewhere on SO, I found out about another debugger. Now I'm not sure if I should continue using Xdebug or not. I decided to search the Web for a comparison of PHP debuggers but came back empty-handed. What PHP debugger do you u...