debugging

Why I can only see "??" at any address before 0x70000 in Visual Studio Debug Memeory window?

I am debuging with Visual Studio 2010. I want to see the raw memory bytes in the Debug Memory window. But I noticed that before 0x70000, the memory content is not shown, only a "??" mark for each byt. Why can't I see the content? ...

Educational example to show that sometimes printf as debugging may hide a bug

Hello all, I remember when I was in some course of C programming, a teacher once suggested to use printf to watch the execution of a program that I was trying to debug. This program had a segmentation fault with a cause that I cannot remember at the moment. I followed his advice and the segmentation fault disappeared. Fortunately, a cle...

Tracking down EXC_BAD_ACCESS without NSZombie?

I've spent two days on this and I still can't find the cause of the crash. I know it has something to do with trying to access an object that has been freed but I don't know which access or which object. Whenever I google trying to find the source of EXC_BAD_ACCESS people suggest using NSZombies. The problem is when I enable zombies...

'Immediate' window for IntelliJ

Hello, I'm using IntelliJ 9 and I'm curious if there is any IntelliJ equivalent of the Visual Studio 'immediate' debug window. There is ALT-F8 to evaluate an expression, but what I'd like to be able to write code in a window that interacts with what I am currently debugging (if that's even possible). Having breakpoints that log messag...

How can I do the instruction level debugging with CDT

I am using CDT for developing C programs. When the debugger stops on a break point and I do "Step Over" or "Step Into" the debugger behaviour is based on the source line level but not on the instruction level. Can I do debugging on the instruction level in CDT? ...

Capturing a snapshot of a running .net application for playback in a debugger later.

This is probably just a crazy pipe dream but I thought I would ask if something like this exists anyway... Have you ever been here... Somebody in the QA team files a bug but when you (the developer) try to repro the bug, its almost impossible to reproduce the exact set of steps that lead to the problem. This is especially common where m...

Can I put break points on background threads in Python?

I'm using the PyDev for Eclipse plugin, and I'm trying to set a break point in some code that gets run in a background thread. The break point never gets hit even though the code is executing. Here's a small example: import thread def go(count): print 'count is %d.' % count # set break point here print 'calling from main thread:' ...

What should I check before I release a web application?

I am nearly finished a web application. I need to test it and find the security issues before it release. Is there any methods / guideline to do this kind of testing? Or is there any tools to help me check my application is ready to go online? Thank you.   ...

Silvelight 4 is not debugging. Symbols are not loaded.

Hi, I am making my first silverlight application. I only put a textbox and a button. I tried to debugged and It doesn't work. I tried going to the web project. property pages->start options->debuggers and silverlight is already checked. so I need help. Why is not working???? Thanks Nora ...

Why does my Actionscript 3 program randomly get stuck in an infinite loop?

mBlocks is a 2-dimensional array of Block objects. Every time my application runs, it runs the InitGridNumbers function. Sometimes, it will get stuck in an infinite loop. Other times, it builds and runs without issues. public function InitGridNumbers():void { var tempRow:Array; var tempColumn:Array; var tempNum:int; for ...

Visual Studio 2010 won't allow me to debug web application

I have the .NET Target framework set to .NET Framework 3.5 When I try to debug with f5, i get the following message in a popup window: "Unable to start debugging on the web server. Mixed-mode debugging of x64 processes is not supported when using Microsoft.NET Framework versions earlier than 4.0." Of course when I set the target frame...

Flash Builder 4 Debugger Variables Not Updating

Damndest thing. Every once in a while, I'll make a change to some part of my Flash application, while working in Flash Builder 4, and when I click Debug Play, it starts running with the old code and the old variables, even though the code I'm looking at in the code window is the new, changed code. I can still advance step by step, but th...

Bypass OutputDebugString in Delphi 7?

I'm wondering if it's possible to bypass the OutputDebugString? I'd like the OutputDebugString output showing up in DebugView and not in the internal Delphi Event Viewer window. But i can't find a way to tell Delphi not to swallow the OutputDebugString. Any ideas? regards ...

Unable to Debug MS Test on Visual Studio 2010?

I am using MS Test with Visual Studio 2010 to write unit Tests. When I debug a Test it shows a Message box as shown below Title : Downloading public symbols Message : System.XXXX.dll Has anyone else faced this issue with MS Test on Visual Studio 2010? This problem does not come when I run a test. Its only when I try to Debug a Test ...

[Qt] getting the error: 'unavailable synchroneous data'

Hey guys, I'm getting this strange error in Qt while debugging .. Here's whats happening: I am debugging inside this function/method which is part of a class named Canvas. Now within this function, I should be able to access all of this class's variables, etc .. since the access request is coming from within the same class. However, when...

Silverlight debugging issue

Hello everyone, I am previously using VSTS 2008 + C# + .Net 3.5 + Silverlight 3.0 and my application can be debugged correctly in VSTS 2008 (pressing F5 and then start debugging, my application is a traditional Silverlight application, i.e. an xap file embedded in html page). I find when I upgrade to Silverlight 4.0 player, when debugg...

Why does Visual Web Developer 2008/2010 no longer debug silverlight apps in Firefox?

Suddenly today Visual Web Developer does not allow me to debug Silverlight applications. This happens in 2008 and 2010 versions. It gives no error message, just ignores all break points. It can still debug ASP.NET applications. Is anyone else experiencing this? Added: Interesting: debugging works in Internet Explorer but not in Fir...

How to debug config files in .NET?

I've got a Visual Studio project that recently started throwing a ConfigurationErrorsException, and I can't figure out where it's coming from. I've hunted high and low, can't find anything like the error, and it doesn't appear for any of my teammates when they run the project on their PCs. Does anyone have any specific advice on how to ...

Is there a way to visualize the activity stack (activities in memory) on Android?

I'm currently debugging my app which is quite complex and has up to 5 activity levels. In order to detect memory leaks (i.e. activities that aren't removed from memory even finish() is called, due to some references held somewhere) I want to check which activities are still alive in memory. Currently I create hprof dumps, but it's not v...

jQuery, writing if statement with .bind vs .focus looking for alternate way to execute

Brief synopsis, this code works beautifully and does what it is supposed except with radio buttons on webkit. $('input, textarea, select').focus(function(){ $(this).parents('.row').addClass("hilite"); }).blur(function(){ $(this).parents('.row2').removeClass("hilite"); }); I did some research and tested it a few...