debugging

Global variable is changed, but memory breakpoint is not hit

I have a bool variable which should be true, but is sometimes set to false. I have set a memory breakpoint to see what is changing that. To my surprise, the breakpoint did not hit, but the variable went to false again. What could change the memory without memory breakpoint catching it? ...

firebug console error

Hello Stack Overflow, I try to learn to use Firebug (debug). I try to run "bennadel Firebug debug example" . URL SCRIPT http://www.bennadel.com/blog/1459-FireBug-s-Console-dir-vs-DOM-Tab.htm. With: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729). Firebug 1.5.2. I run " FireB...

Debug a WebPart Error in a SharePoint Page Layout

Hi, I have a page layout that I use in my SharePoint solution when I programmatically create a new publishing page. There is an error with one of the web parts that is included in the layout, so that when I am try and create the page, the operation fails. Can anyone suggest a way of debugging the error with the web part? Thanks, Ma...

Visual Studio 2008 and Intel Fortran 11 - Stop Debugging do not closes program command-line window?

Hi, I'm using VS2008 with Intel Fortran 11. After doing the install of the SP1 for VS2008, I started to have problems when debugging a fortran app. What happens is that if I stop the execution of the program during debug, The command-line window where the program shows their status do not close. After this, nor the windows can close...

Limiting the amount of information printed by Perl debugger

One of my pet peeves with debugging Perl code (in command line debbugger, perl -d) is the fact that mistakenly printing (via x command) the contents of a huge datastructure is guaranteed to freeze up your terminal for forever and a half while 100s of pages of data are printed. Epecially if that happens across slowish network. As such, I...

Debug Error in Ruby script

I'm very new to Ruby. I have the following piece of code which is giving me an error. class ItemsController < ApplicationController def populate Location.all.each { |l| place = l.radar_place next if !place news_items = place.radars news_items.each { |ni| t = Lbs2.new t.lat = l.lat ...

How do I set my development web browser in VS2010 RC?

I don't like to use IE for my system default web browser. but I do want to set IE as my browser in VS2010 because it works a little nicer for debugging and I like to develop to the lowest common denominator. (jab, lol)... anyhow, can I default to debugging against IE? I know in VS2008 you just had to "Browse With..." on an .aspx page...

Chrome Developer Tools, using inspection functions inside script tags.

I've looked around on google and I cannot figure out to use for instance the dir() function within the web page I'm working on, I would like to have it spit out debug statements, as I'm used to doing with Firebug. A clearer example What I want is to do the following. <script> a=document.getElementById('gabber'); dir(a); </script> ...

How to debug a Custom Property Editor in Delphi 6 (Pro)?

How can I set breakpoints and trace through a Custom Property Editor I wrote for one of my VCL derived components (Component Palette member)? The problem of course is that I want to debug code that is running in a compiled BPL while the IDE is active and is not running an active application. Setting breakpoints in the BPL source file d...

how to get thread traces in a multithreaded c++ running process?

To debug multithreaded programs to in case of conditions such as deadlock or livelock, what are the useful utilities? I was wondering if gcore gives the stack dump of all running threds in the process or just the main thread. Also, does gcore suspend/kill the running process? Any information on debugging multithreaded programs will be ve...

What's the best way to measure and track performance over various calls at runtime?

Hello. I'm trying to optimize the performance of my code, but I'm not familiar with xcode's debuggers or debuggers in general. Is it possible to track the execution time and frequency of calls being made at runtime? Imagine a chain of events with some recursive calls over a fraction of a second. What's the best way to track where the...

VS2008 won't run any exe, layout lost on every run

There I was happily debugging my code, when I did a restart, and even though VS said it was running my application, nothing showed. When I hit stop, VS emptied itself of everything - solution explorer, all opened files, and all of the other panes (output, properties, etc.). I've tried rebooting. Doesn't help. Tried creating an empty ...

Find previous debug line in Visual studio 2005

Hi, I'm trying to debug a C++ project in VS 2005. In debug mode how can i find the previous line that got executed.? i.e Consider the control is in line 5000. How can i find the previous line which got executed before coming to line 5000. Actually there are few goto statements involved. Call stack is just displaying the previous funct...

How to avoid debugging of code in java?

I need to stop debugger applications from debugging my code. For this, i am using the following code in the constructor of my classes: RuntimeMXBean RuntimemxBean = ManagementFactory.getRuntimeMXBean(); java.util.List<String> arguments = RuntimemxBean.getInputArguments(); //System.setErr(null); for ( String str : a...

Visual Studio debugger problem

In Visual Studio 2008, after debugging about 1-2 minutes, when I press F10 (Step Over), the debugger hangs and Visual Studio freezes for 5-10 seconds and then go to the next line. Then whatever I do (F10, F5, F11, etc), the debugger continues the execution as if i pressed F5 and all my forms that I was debugging close. I always have to...

DirectShow complains I'm running a mixed debug/retail build. What?

C:\Program Files\Microsoft SDKs\Windows\v#.#\Samples\multimedia\directshow\baseclasses\wxdebug.gpp line 890: /* If this fires you have a mixed DEBUG/RETAIL build */ ASSERT(!!szObjectName ^ !!wszObjectName); What does it mean and how can I fix it? If it matters: I've written a managed media player library that wraps DirectShow, and I...

MoQ - issue when trying to debug a test

Hopefully this is a simple. I just getting started with mocking frameworks and have decided to use MOQ. I'm having trouble with one of my test after setup of my mock object so i decided to step through the code. When i hit F10 after the following line: Dim Mock = New Mock(Of IMyInterface) <----Error When on this line and hit F10 Wi...

How To debug Android app on Emulator using NetBeans IDE

I recently downloaded the latest NetBeans IDE (for MACOSX) and imported/migrated a project over from the ECLIPSE environment. Everything looks, and works well... except that EMULATOR gets stuck "waiting for the debugger to attach." I tried "Attaching Debugger..." and set the PORT value to every case I've ever read about (8200, 8700, 555...

AS3: How to print current class in trace statement for debugging?

Is there a statement in AS3 that will return current class and/or scope? I'd like to use that in trace statements so that I know the exact location of a trace. Thanks. ...

Debugging Python Crash

I am building Python 2.6 4 from source on a Linux server and am experiencing a Segmentation Fault when running the tests (make test) (test_hashlib.py and test_hmac.py). When I opened the core dump file in gdb, I am told that the error is at 0x00002b73379ac446 in ??. I then recompiled python with both my CFLAGS and CPPFLAGS set to -g to...