debugging

Error: C# Attempted to read or write protected memory.

im having a hard time correcting this bug, the app is tested on 4 diffrent machines and works fine on 3 of them but one vista PC gives this error when trying to open a page trough WebBrower1 anyhelp resolving this wold be very helpful to me. System.AccessViolationException occurred Message="Attempted to read or write protected memory....

Calling methods from Xcode Debugger ?

Hello, what's the correct way to call a method from the Xcode debugger command line ? For example if I'm inside the sort: method of my class A (using the debugger), how can I call debugSort: method that belongs to class A too ? ( My code is Objective-C btw ) ...

Debugging Websites in Various Browsers

I am having my first foray into website design and I am learning a lot. I am also now seeing why web developers are not a huge fan of developing for Internet Explorer. Nothing seems to work how I expect. However, since the website has to work cross-browser, I am spending time looking at it in Firefox, Chrome, and IE. Something that i...

OpenGL texture loading issue

This is a very vague problem, so please feel free to clarify anything about this project. I'm working on a very large application, and recently a very perplexing bug has cropped up regarding the texturing. Some of the textures that we are loading are being loaded - I've stepped through the code, and it runs - but all OpenGL renders for ...

How to debug a connection failure between Jboss and eclipse debugger.

I have setup eclipse to attach to a local JVM. But when I try to do the same for a machine over the network I get "connection timed out exception". How do I go about debugging this issue? I tried: lsof -i :8787 on the remote machine, and it appears that a java process is in fact listening on that port. What else could be wrong and h...

How do I use stackshot to debug my application?

I've recently been told about a useful debugging tool on Mac OS X called stackshot, however I don't know how to invoke it. My understanding from the documentation is that it runs as a daemon, but the man page also reads as if it can be invoked from the command line. How would I go about leveraging stackshot for my currently-running appli...

Visual Studio and Windbg: which one is better to debug large scale managed application

Visual Studio seems is very native to debug the C# project but when the scale is up seems it is not very convenient to debug, for example when the project contains some code that is calling in/out of native code... I wanna to know if there is any evidence that windbg is better over VS.Net when we are debugging large/serious project. An...

Executing LINQ-to-SQL Debug Output?

When you log LINQ-to-SQL's query output via the "Log" property on the DataContext object, you get output similar to: SELECT [t0].[fullaname], [t0].[Worker], [t0].[Office] FROM [dbo].[Workers] AS [t0] WHERE [t0].[OfficeID] = @p0 ORDER BY [t0].[Name] -- @p0: Input Int (Size = 0; Prec = 0; Scale = 0) [412] -- Context: SqlProvider(Sql2005) ...

Flash : Trace not working

Hi, Apparently trace stoped working in a perticular file its working fine on everything else. but my main file. Any ideas on that? ...

See substring in debug watch

Is it possible to see a substring of a string when looking a string in the Watch window during a debugging session? ...

Simulating low memory using C++

I am debugging a program that fails during a low memory situation and would like a C++ program that just consumes LOT of memory. Any pointers would help! ...

What's the best way to debug third-party Perl script?

I have a Perl script that gives a completely useless error message, is there a way to get perl to give a stack trace when the error occurs? I tried it this way but it did not work: # Run command in the debbugger: perl -d /path/to/script.pl -my -normal -args # Reset the die command to your own subroutine to do a stacktrace: DB<1> *CO...

MSVC9: How do I view a location in memory?

I'm pretty sure I'm overlooking something totally obvious, but I want to view the raw contents of a point in memory under MSVC9, but I can't find a location in the UI where I can punch in a memory address. How can this be done? ...

Debugging/Breakpoint-ing the Rails Core with Ruby-Debug?

How do I debug the rails gems? I've just found the beauty of ruby-debug and am real excited, but I want to step through the routing code in action_controller, but the debugger isn't set up at this time, it seems like it's just skipping over my "debugger" calls in action_controller/routing/route_set.rb for example. What am I missing? ...

How to start a process and then pause it immediately?

Dear All, I would like to know if there is any command or tool that can be used to start a process and then pause it immediately. I need this function so that I can have time to attach a debugger to it. I have tried visual studio's /debugexe feature, but the behavior of the program seemed changed. So I need to find other way to attach i...

Selectively disable specified referenced javascript files on Firefox

Is there any way to selectively disable specified javascript files on Firefox/Firebug? Perhaps using another add-on? I'm facing drag/drop conflicts between several static javascript files and I want to disable them one by one until finding the conflicting one. ...

Debugging focus and event propagation in Flex

I have a custom TitleWindow component that is registered to listen for keyboard events from the user (so that esc closes the window, enter saves, etc.). However, in my testing I've found a couple cases where my keyboard event handlers don't fire. My best guess as to why this is happening is that there is some child component somewhere t...

Can I see what is referencing an object while debugging?

Is it possible, while debugging a Silverlight app, to view all current references to an object? I know that WPF developers have the ability to use the SOS.dll, but that cannot be loaded in the VS2008 IDE while debugging a Silverlight app. I've tried it, but the load command gives me the error: .load C:\Program Files\Microsoft Silve...

Is there a way to retrieve every responder that has handled a UITouch?

I'm trying to debug some touchesBegan/Moved/Ended related slowdown in my game; I think that some of my touch responders are not unloading properly, and so as the game runs on more and more of them stack up and the touches get less responsive because they have to pass through a larger and larger responder chain. Is there some way to vi...

Debugging a segv

I am sure a lot of you have experienced this. Sometimes while debugging a crash you add a line of trace and viola the crash disappears. This generally points to a memory corruption and you look for buffer overflows etc around the code. To be more specific the same occurs for even single threaded applications. How does though a line of t...