debugging

How to do Eclipse + Zend (Magento) Debugging on Local Machine?

I'm trying to figure out how to do debugging on Zend (more specifically Magento) code using Eclipse. This is the workflow I'd like: Set breakpoints in Eclipse. Open up Firefox or Chrome, pull up the site in the browser When code hits the breakpoint, Eclipse halts execution, letting me look trace everything. Right now, I debug the ap...

Debugging dump of 32-bit process captured on 64-bit machine

I recently received a 64-bit crash dump from a customer. Our processes are all 32-bit, but the customer's machine is running x64 Server 2008. Visual Studio (both 2008 and 2010 Express) is telling me that I have to use the 64-bit version of MSVSMON.EXE, which I can't because I don't have a 64-bit machine. I'm pretty sure there's a way t...

What do question marks (???) in Visual Studio watch window signify?

I've run into an exception and looking at variables in the watch window, I'm seeing some question marks (???). Does this mean it's pointing to an invalid address? ...

Web debug: tracking GET source

I'm trying to fix a long standing bug in our rich GUI web app. It is a GET being executed out of place without query string parameters, causing uncaught exception on the business layer on the server due to missing parameters, returned as an error page. Environment: jQuery (UI) + DWR (allow Java and JS to call each other through AJAX) + ...

(Re)starting Matlab after error from error location

Hello all, I'm debugging a matlab script that takes ~10 minutes to run. Towards the end of the script I do some i/o and simple calculations with my results, and I keep running into errors. Is there a way to start matlab from a certain sport in a script after it exits with an error--the data is still in the workspace so I could just comm...

Problem with Debugging in C++ Builder 2009

Hi Friends I have a strange problem, I hope you can help me. I write a program in C++ Builder 2009, when I run the program without debugger I see an Exception raised. bun in debugger never exception raised and I cant find the exception point. And Also I enable the CodeGaurd in C++ for Finding the problem but the Exception never raised...

Setting Xcode breakpoint by code? (like pause() function)

I'm finding a way pausing program execution by code on Xcode As an example, I can stop execution with abort() C function. This pops Xcode debugger up. However, this exits program completely, so I'm finding a way to pause execution. So I can resume execution after checking execution states. This is required for handling light-weight err...

How do you write and debug server side actionscript?

Hi, what is the best way to write and debug Server Side Action Script on Flash Media Server? I use Flash Builder for syntax highlighting, but that's all. Any ideas? ...

How to resolve a stack trace in visual studio 2008

Hi, I'm developing an ASP.NET website in viusal studio 2008, the thing is that I changed a line in the code, this change trows an exception (NullReferenceException) at runtime, after I change the line back it still trows the same exception, I want to follow the stack trace to look into the error and solve it, can you guys give some tips?...

Debug .NET Socket callbacks

I use the async BeginReceive method of System.Net.Sockets.Socket. This requires a callback to an OnReceive function. However, nothing bugging in this section seems to be taken in charge by the debugger. So if anything goes wrong (uncatched exception), the app just crashes. Any idea how to fix that? ...

Protobuf.net "The type cannot be changed once a serializer has been generated"

I have some fairly simple code using Protobuf.net, which is throwing a very odd exception. In MetaType.cs on line 167 it throws a InvalidOperationException "The type cannot be changed once a serializer has been generated". What does this mean and how do I fix it? My code looks like this: This method starts off all the serialising: whi...

How can I disabled debug navigation in django-cms?

I always see "selected (Level:" or "Sibling" next to each menu element. What I should do to disable this information from my website. ...

python - undefined variable?

Does python have some undefined variable / debug mode which will output a notice/warning? PHP allows you to modify the error_reporting to turn on notice warnings which mean doing <?php echo $foo; will throw an "Undefined variable foo on line 2....... does python have something similar? I had a bug where I was doing db.connect in...

Object address in Ruby

Short version: The default inspect method for a class displays the object's address.* How can I do this in a custom inspect method of my own? *(To be clear, I want the 8-digit hex number you would normally get from inspect. I don't care about the actual memory address. I'm just calling it a memory address because it looks like one. ...

c++ - what to do if debug runs fine, but release crashes

Hey there! I have an application that runs just fine in the debug build, but when I start it in the release build, i get a unhandled Exception at 0x0043b134 in myapp.exe: 0xC0000005: Access violation while reading at position 0x004bd96c if i click on 'break' it tells me that there are no symboles loaded and the sourcecode can't be di...

BadPtr after several iterations

Hello guys, C++. Its may be more question of debugging in Visual Studio and working with memory. I have a program that analyzes list of files, and path to current file is a concatenation of to strings: CString object named 'folder' and filename itself(CString too). But after 144'th iteration(im sure the number is unimportant), folder ...

Have PHP dump heap on OutOfMemory exception

I am currently debugging a script that constantly runs into OutOfMemory exceptions. It is run as a cronjob and usually runs fine, but when the cronjob wasn't run for a while (for whatever reason) the script has to handle to many elements that queued up and will run into a OutOfMemory exception. From examining the code I was not able to ...

Windows CE project with libraries problem

Hello, I am developing a Windows CE application which uses some libraries provided by other parts of our company. When I deploy my application on "My Computer" (.NET compact application running on standard PC), everything works, but when I deploy to the device, the application hangs when trying to use methods from the library. The syst...

why do i have to rebuild the test project, whenever i change the code ??

I have visual studio 2010, and a unit-test project. when i run (debug test in the current context),then stop it,and then change the code, i have to rebuild the project, otherwise the project will run without debugging, and it will use the old code !!! why is that happening ? ...

weird aptana php debug redirecting localhost to www.localhost.com

Note: debug (using xdebug) has been working great on this machine for months. Using aptana to debug php app on local machine (win7). Webserver is wamp. Was working fine earlier today, now when I come to step thru app (configured for external firefox browser), shows 1st line of app, session_start. Singlestep that, and firefox comes up wi...