debugging

How to debug Silverlight 3 C# Application?

How to debug Silverlight 3 C# Application? Using VS or Blend... or some tool\plugin? ...

What tool can catch buffer overflows in C?

So I have this simple piece of code which demonstrates a simple buffer overflow: #include <stdio.h> int main(void) { char c[4] = { 'A', 'B', 'C', 'D' }; char d[4] = { 'W', 'X', 'Y', 'Z' }; printf("c[0] is '%c'\n", c[0]); d[4] = 'Z'; /* Overflow that overwrites c[0] */ printf("c[0] is '%c'\n", c[0]); return 0...

Django: debugging entries just disapearing

So, I'm pulling my hair out here, and maybe someone has an insight. I have a cronjob that loops over all my Link objects, does some stuff, might change properties on the object and does a save(). That's it. Every so often (around once an hour), one of my rows just disappears. Poof. Nothing in the logs. So, I'm trying to add debugging...

Help debug this problem

I've probably included more than I needed to, but then again, I probably missed exactly what I needed to add. At any rate, below is a stack trace, some valgrind output, and some related code. The valgrind output probably explains most. I don't think the stack trace is worth much; maybe the program output right before it might be useful. ...

Detecting the use of private APIs

I'm being rejected on the App Store for using private instance variables in my app. The ivars I am supposedly using are most definitely not being accessed in my code, but I am using one or two static libs from third parties. How would I test whether these could actually be the offenders? Update: Apple is accusing me (and 3rd party libs...

how to create conditional breakpoint with std::string

Suppose I have this function: std::string Func1 (std::string myString) { //do some string processing std::string newString == Func2(myString) return newString; } how do I set a conditional break when newString has a specific value ? (without changing the source) setting a condition newString == "my value" didn't work ...

Is there a tool for Visual Studio to track (or breakpoint) variable value?

Is there is a tool or a setting in the debugger to stop on the break point or if variable is set to a particular value? I mean if I know that value will be set to "HELLO" then the debugger will stop or do the same if it reached some break point in the loop? Any advise would be helpful! ...

The quest for 0x0B

I get this error when reading some data from an SQL column then converting it to XML: "System.InvalidOperationException: There is an error in XML document (182, 16). ---> System.Xml.XmlException: ' ', hexadecimal value 0x0B, is an invalid character." Fair enough, maybe the data is malformed. Except, how can I find the culprit row? S...

Cannot Debug Unmanaged Dll from C#

I have a DLL that was written in C++ and called from a C# application. The DLL is unmanaged code. If I copy the DLL and its .pdb files with a post build event to the C# app's debug execution dir I still can't hit any break points I put into the DLL code. The break point has a message attached to it saying that "no symbols have been loade...

How to debug a servlet in eclipse without having to deploy it

This is not a programming question but is only relevant to programmers, so I think it is appropriate. How do you go about debugging a program a servlet in Eclipse. Can I somehow use my JSP's to create "simulated" request objects and have the servlets try to handle them, from Eclipse with our without some plugin. This would be ideal if I...

Shark was unable to find symbol information for this address range - iPhone

I'm trying to use Shark to determine which method(s) are taking the most time in my iPhone app. After sampling, I get this: Clicking the "!" button yields: Shark was unable to find symbol information for this address range. Typically this happens because the application was compiled without symbols or they have been subsequ...

VB6 execution with database is different when stepping through vs running

I've come across a weird scenario with the following code in a vb6 app: Private database As dao.Database Set database = openDaoDatabase([some valid database location], False) createDBField database, "Table", "FirstRow", dao.dbInteger, 0, "0" Public Sub createDBField(targetDB As dao.Database, strTable As String, strField As String, dbT...

How do I debug random crashes in my web app in IE?

Here's a classic "works on my machine, but not in production" scenario. ASP.NET app written in C#. Simple UI with some items to select. Once the user clicks "Go", it runs to the server and builds a PDF file with some data-driven graphics in it (housed in SQL Server) and sends the PDF back to the user for use. I think it's a webserver i...

Visual Studio Debugging and Database (Oracle) Connections?

Each time I run my application it creates a connection to the Oracle database (pretty typical). The problem I'm running into is that, when I kill the debugger to stop the application the code to close the database connection never gets called. Oracle doesn't seem to realize that those connections are now unimportant and it tries to kee...

Magento Debugging Environment

I looked for ideas on setting up a Magento development environment when we first started using it for our site last year. I didn't find anything that work really well, so I stayed with var_dump'ing using the log files. Now that Magento has another year under its belt and several hundred more developers I was wondering if anyone has fou...

HttpWebRequest does not include "Pragma: no-cache" header when doing a POST

I'm using an HttpWebRequest that has a CachePolicy of HttpRequestCacheLevel.Reload. When doing a GET the "Pragma: no-cache" header is in the request (as tracked through Fiddler). But when doing the exact same request using a POST then the "Pragma: no-cache" header is not included. Is there a reason for this? Is it a bug? And is there a ...

implementing firephp

that's about it...the problem is I want to make firephp work, but I can't find any simple examples! What's it for anyway? "FirePHP enables you to print to your Firebug Console using a simple PHP function call." Why would I want to do that anyway? Are there any solid debugging advantage in using FirePHP? ...

Debugging Java code line by line

Is it possible to debug code line by line in Eclipse showing which line is executing so that I understand the logic of the code? I'm new to programming, please give me suitable advice. ...

End of 2d array

how can i say in java if i get to the end of a row in a 2d array and i have only encountered 0's in that row to set row to the next one (row ++) and set column to 0 (column = 0)? i am having problems where my algorithm i going in to an infinite loop :D thanks ...

Can I get DirectX(any version) to callback when logging an error?

I have output like this after choosing debug version in the directx cpl: Direct3D9: (WARN) :Ignoring redundant SetTextureStageState. Stage: 0, State: 3 Direct3D9: (ERROR) :Memory Address: 008307ec lAllocID=1 dwSize=00004bc4, ReturnAddr=7248d5ea (pid=000017d4) Is it possible to define a callback which is triggered when these notificati...