debugging

Is it possible to control Visual Studio exception handling from the debugged code itself?

Dear ladies and sirs. I am wondering if it is possible to control the Visual Studio exception handling options from the code itself. For instance, I would like to turn off stopping on FCE for a certain piece of code, that generates many FCE, however, I would like it to be active for all the other code. Is it possible to do it from code?...

How to debug on a real device (using Eclipse/ADT)

I'm trying to figure out how to debug applications directly on my phone (HTC Desire). I've installed the USB driver that came with the phone and the phone is listed when using "adb devices". How do I configure eclipse/ADT to launch on the phone instead of launching the emulator/virtual device? ...

How to get a debug flow of execution in C++

Hi, I work on a global trading system which supports many users. Each user can book,amend,edit,delete trades. The system is regulated by a central deal capture service. The deal capture service informs all the user of any updates that occur. The problem comes when we have crashes, as the production environment is impossible to re-creat...

WCF Message Debugging on WebHttpBehavior

I've created a custom binding in WCF for a custom MessageEncoder to allow messages to be written as XML using a wider range of encodings than WCF supports out of the box. The encoder appears to be working and I am able to send and receive messages, but I want to verify that the XML message being written is exactly as required by the serv...

Visual Studio 2010 is not allowing me to debug my code

So, this interesting issue has been plaguing me for the past couple of hours. Visual Studio 2010 Ultimate no longer attaches the debugger and lets me debug my code. If I use the built in development server, then everything works fine. If I switch to Use Local IIS Web Server (http://localhost/), then all it does it attach to w3wp.exe, b...

Best Way to Include Debug Code?

I am programming Android applications, and the best way here may or may not be the same as Java in general. I simply want to be able to set a debug flag that will only execute certain portions of code when it's set to true––equiv to C++ setting a preprocessor #define DEBUG and using #ifdef DEBUG. Is there an accepted or best way to acc...

WinDbg: how to know a break happened in WinDbg?

How can I automate the debugging process? I have a WinDbg script with some basic commands which I want to run when a break occurred in the process/application that I attached to WinDbg. How can I know that there is break in WinDbg, and how to launch the script automatically? ...

How to debug an external library (OpenCV) in Visual C++?

I am developing a project in VC++2008. The project uses the OpenCV library (but I guess this applies to any other library). I am working with the Debug configuration, the linker properties include the debug versions of the library .lib's as additional dependencies. In VC++ Directories under Tools|Options i set up the include directory, t...

Browser Preview Utility

Hello everybody, Are there any programs that render websites from the point of view of different browsers? In other words, I'd like to be able to open and view websites as if it were Internet Explorer, Firefox, Chrome, Safari, etc. It would be a bonus if the utility has a paned interface that lets you view pages side by side. Thanks!...

Possible to programatically access X-Mms-Content-Location?

I'm seeing a strange issue on a phone and I'm trying to come up with a way to troubleshoot it to find out more. Is it possible to access the X-Mms-Content-Location attribute of a message from a MMS message programatically, using the Android SDK? This is one example of the error that I am investigating. If I can access that attribute,...

how to create a more accurate Break Point or Try/Catch

I have two FOR loops that the outer will repeat 64 times some where I know there is a index out of bound error How can I set a good break point or try/catch block,etc that exactly shows me the index and line of code that is causing the problem. ( C# WinApp) Thanks all. ...

Can I get the stack traces of all threads in my c# app?

I'm debugging an apparent concurrency issue in a largish app that I hack on at work. The bug in question only manifests on certain lower-performance machines after running for many (12+) hours, and I have never reproduced it in the debugger. Because of this, my debugging tools are basically limited to analyzing log files. C# makes it ...

I need to parameterize against sql injection in asp classic, what things should I take some time to get to know before I start making changes? (coming from php)

I can already see that I'm not going to enjoy the experience, but I have to do some sql cleanup on this 1000 file asp classic web-app without any prior knowledge of asp, and before I get to hacking away at it I'd like to be aware of any major gotchas to watch out for while coding in asp classic/sql parameter preparing/making asp whitespa...

How to Profile the CPU Activity of a Visual Studio Program

Imagine i have a program doing a lot of things wasting about 90% of CPU. I need a way to know (through visual studio) where the program are wasting CPU. ...

Debugging EXC_BAD_ACCESS in an iPhone app

Here's my stack trace. Where do I start to figure this out? I've tried a ton of NSLog()s and I can't track it down. #0 0x94e9ced7 in objc_msgSend () #1 0x04936318 in ?? () #2 0x0259b252 in __CFRunLoopDoObservers () #3 0x0259a65f in CFRunLoopRunSpecific () #4 0x02599c48 in CFRunLoopRunInMode () #5 0x02ae7615 in GSEventRunModal () #...

Venkman's javascript debugger

I'm trying to understand if I can debug a stand alone .js file which doesn't interact with browser. Is there any way to just load it and debug or I will be forced to encapsulate it into html file? Environment is Windows, no browser objects are required. ...

Is it worth upgrading to VS2010 Ultimate to take advantage of the advanced debugging features?

I am currently using VS2010 Premium, and have heard that the debugging in Ultimate is so much better. Is it really worth upgrading to Ultimate to take advantage of the new debugging features they've included? Or is it marketing hype and not really usable for every day development scenarios? I believe the feature is called IntelliTrace. ...

How do I keep this from pushing down?

http://removed.com/jquery/test.html Playing with jQuery and upon pressing "More" on the top left, it pushes down the "Brown" layer. How can I keep the brown layer steady? It happens in Chrome, but not Firefox. ...

Cannot use Debug on Zend

Greetings, I done the debugger setup on a WAMP server... What happens is that it says that a timeout error ocurred when the debug server attempted to connect the following IP/Host 127.0.0.1 I already added to the php.ini zend_debugger.allow_hosts=127.0.0.1 zend_debugger.expose_remotely=always this is running on my machine... I don't k...

How to known the stack level reached in .NET?

How to know and then print out (in debug) the stack level reached in a certain moment inside a function call? ...