debugging

Visual C++: breakpoints disabled

I have a 'release with debug info' unmanaged c++ .exe (built with VS2005) deployed onto another PC, the .exe and .pdb are in the same folder. When I try to attach to the process from VS2005, either locally or remotely from my dev PC, all my breakpoints become disabled. I don't get any warning/error popups which makes me think the PDB fi...

Is there a way to distinguish a GUID from just a random number?

Being able to distinguish a GUID from random data can be useful when debugging obscure code defects. On Windows each GUID generated is of version 4 therefore it has '4' as the first half-byte of the third part. So if the 16-byte sequence violtates that rule it is not a version 4 GUID. For example, 567E1ECB-EA1C-42D3-A3ED-87A5D824D167 ...

.NET Framework source stepping with VS 2010 Beta 2

This is something that worked well for me with VS 2008, but I can't get it to work with VS 2010. I've enabled ".NET Framework source stepping", and VS seemed to download the symbols into the default symbol cache directory. My project is targeting .NET Framework 3.5. When debugging, I can't step into .NET Framework code, and the "Load Sy...

Zend Debugger using Solaris

I'm trying to setup debugging for PHP applications using the following environment: -Clients: Windows XP, Zend Studio 7, Firefox+Zend Studio Toolbar -Server: Solaris 5.10 32Bits, Apache 2.2.8, PHP 5.2.5 I'd like to use the Zend Debugger because of its easy integration into Zend Studio, and the profiling abilities; Although I'm aware o...

How do you Debug/Run classic asp pages in Visual Studio 2008?

Whenever I try to open a classic asp page while running the site in VS2008 I get the error: "This type of page is not served". How do you Debug/Run classic asp pages in Visual Studio 2008? AnthonyWJones has the correct answer but it is not letting me select an answer for some reason. Here is a tutorial I found that goes into more deta...

Debugging an already-running ASP.NET site in IIS7

We currently have a Live ASP.NET application (Basically a CMS) running on our IIS7 web-server. Every once and a while (Talking every few months) it's app pool will go to 100% CPU-usage and stay there until the page times out. We've tried increasing the timeout for the page to 30 minutes in the web.config but it still just stayed at full...

How does TDD work with Exceptions and parameter validation?

I have come to something of a crossroads. I recently wrote a 10,000 line application with no TDD (a mistake I know). I definitely ran into a very large amount of errors but now I want to retrofit the project. Here is the problem I ran into though. Lets take a example of a function that does division: public int divide (int var1, int var...

whats a good tool for finding syntax errors in my javascript code?

I'm trying to use firebug to walk through my code, but there's a syntax error somewhere and firebug is struggling with it. Are there any good tools that will scan my javascript for sytax errors? Thanks in advance for your help! ...

What tool do you use for debugging Javascript?

I've notices I'm not capable to debug correctly js. I'm only using alert() as a spread sentences technique but I need something better. So... which tool do you use? ...

Best practices on seperating debug/developing code java/javafx

I am working on a game in JavaFX and I'm sending people the compiled game once in a while for them to try out. As I'm still in the middle of developing it, I have several pieces of code intended solely for developing/debugging. One example is a gamespeed slider that is of great use for me while testing, but it is VERY buggy and can onl...

Can't hit breakpoint in ASP.NET web app (Stop debugging in progress... popup in VS)

Hi, I am trying to debug some code in my ASP.NET web app. I set a breakpoint in one of the page events of the page's codebehind, and this once came up with a special icon in place of the red breakpoint saying symbols have not been loaded and the breakpoint will not be hit. This error has not repeated itself but why can't I hit the bre...

What are all the debugging tools available for the iPhone?

I'm looking for a comprehensive list of all tools for debugging iPhone apps, and any online resources relating to them. ...

disable remote site project debugging vs 2008

i have a remote web site project in my sln that contains a wcf service and the server does not allow me to debug him... when i run my client i get an error on the start that the server cannot be debugged.. how can i tell the vs to stop trying to debug the remote server? ...

VS2010 Ultimate beta 2: Where is application verifier?

In VSTS2008 there used to be Debug -> Start With Application Verifier, which doesn't exist in VS2010 Ultimate beta 2. Where has it gone? ...

how to add gdb to cygwin

hi friends,how to add gdb to cygwin.I havw downloaded gdb tar package for cygwin from sourceforge.On extracting iot there are many files ,I pasted the gdb.exe file from the package in the bin folder of cygwin however its not working ...

Xcode: entering user input when debugging

int main() { cout << "Buy or sell (b/s): " << endl; string buy_sell; cin >> buy_sell; ..... } when i try to step through this in Xcode, i just stops at the cin >> buy_sell line, because it's waiting for the user input. How do i enter the value i want in the debugger so i can move past this? I'm using Xcode 3.2.1. (I k...

Get stacktrace from stuck python process

I have to run a legacy Zope2 website and have some grievance with it. The biggest issue is that, occasionally, it just locks up, running at 100% CPU load and not answering to requests anymore. While the problem isn't reproducible on a regular basis, one page containing 3 dynamic graphs triggers it sometimes, so I suspect some kind of rac...

How to disable javascript debugging on Visual Studio 2008?

Hello mates, I'm getting crazy with the VS2008 javascript debugging. Every time I run my web application (mvc) it starts to debug everything. I don't want it! I didn't find any option for that and I already disabled js debugging on IE. Thanks ...

Are loops with and without parenthesis handled differently in C?

I was stepping through some C/CUDA code in the debugger, something like: for(uint i = threadIdx.x; i < 8379; i+=256) sum += d_PartialHistograms[blockIdx.x + i * HISTOGRAM64_BIN_COUNT]; And I was utterly confused because the debugger was passing by it in one step, although the output was correct. I realised that when I put curly ...

Standalone ASP.NET development server

I remember seeing a page on codeproject.com where a developer took one or two .dlls from Visual Studio Web Developer 2008 and created a simple win32 form application for hosting a standalone development server. It was a small applicaton that allowed you to enter the path, port number, and a "GO" button, and it launched the server stand...