debugging

Debug .NET HttpWebRequest

Visual Studio 2010 .NET 3.5 Is there any tool that can trace the http request/response that send between my web application to the remote server? I use Wireshark or Fiddler, but both seem not so fit. Please advise, thanks. ...

debugging dll in vb.net web application

I have a vb.net web application in visual web developer 2008 with a dll file and i need to debug a method in that dll. I also have project source files for the dll file itself. How could i make the web application use the source instead of the dll file so that i'd be able to debug it? I've tried debugging the dll project itself, but it's...

Django debug toolbar template listing feature for Struts2

I'm developing a Struts2 application that uses Sitemesh as template engine. What I need is a list of all the templates (JSP) that are used by request. In other projects I use Django Framework, with it I've this amazing Debug Toolbar that, besides many other useful info, provides me with the list of templates the request used for display...

Why I do not get line numbers in exception stack trace if I have PDB and symbols loaded?

Hello, I have a solution with several projects. The solution is in Release mode with no optimization and with pdb files generated. While running Unit Tests i get exceptions but the stack trace does not contains the line numbers. At the modules window I can see that the current assembly is not optimized and that it has symbols loaded. J...

debug JS code which triggers an alert()

Dear all, I have a system which is built using the ext-js library. Part of the system lists orders that are flowing through an online store. When a row is clicked, additional order details are shown. A few days back, a message saying "FIXME: created panelID..." began to appear as soon as a row is clicked. After that, normal functioning ...

VS2010 Last Session Debugging Value

This is nice feature for debugging. However, in normal edit mode, I need to keep my mouse cursor on the pin icon to display the info. Is there any way to keep the info display while mouse cursor move away? Thanks. ...

jQTouch Dynamic Web app???

I'm working on a dynamically changing web app. I'm using javascript and jQuery to populate DIV's with <li>'s and <a>'s. For example, I start with one menu dynamically built with javascript. From that menu, depending on item selected, another javascript function gets called to dynamically populate the corresponding DIV. The problem comi...

Make IE 8's javascript console give more info than "{...}" for objects

I'm trying to debug an issue that only seems to occur in IE 7 and 8, and the debugger's console is being utterly useless. Any time I type in an expression that results in an object it just prints "{...}" to the console. I need to inspect the returned object, but it gives me no easy way to do so. Is there any way to get this to behave ...

Debugging on Windows7 64-bit

Hi, I am trying to debug my app, which was compiled for 32-bit, native code, under VS2005. It crashes on a Windows 7 64-bit machine. I can't figure out how to get a call stack to see where it's crashing. I installed VS2005 on the Windows 7 machine, ran my app, got my crash -- and the dialog had a "Debug" button on it! Yay! I hit th...

How to debug a C# command-line program

I'm trying to build a command-line tool in C# with VS2010. My question is: how do I debug this, like I would a winforms. With winforms, I can step through the code, see the values at each individual step, etc... Here however, the program only responds when I talk to it from the command line. I can't start a debug session, since that wi...

Breaking into Debugger when a process accesses a file, or get a call stack of file accesses from a process

I'm dealing with some hundreds of thousands of lines of code, and I'm stumped where this process is accessing a particular file. I've given up searching the code, I just cannot find out. So, here I am -- asking a question I'm almost certain there is no simple solution for. I've tried FileMon, ProcMon from SysInternals, and while I can ...

Working with XCode breakpoints

I'm a CS student, so I'm still fairly new to programming. Breakpoints seemed pretty darn cool and useful to debugging, so I decided to play around with them a bit. Unfortunately, I don't really know how to work with them. I added a breakpoint to "Log breakpoint and arguments and auto-continue". The program reached the breakpoint, the deb...

unrecognized selector sent to instance

I added an index search to a core data backed UITableView. the search works fine, however after navigating back to the tableView I get this error: -[NSSQLRow controllerDidChangeContent:]: unrecognized selector sent to instance 0x815edf0 I can post more code if this is too little information to go on. thanks for any help ...

app crashing on device

the app I've installed on an iPhone 3G device periodically crashes. I'm wondering if it's the device or the code. the code works fine on the simulator. I have other apps from the app store that do the same thing. e.g. the stackoverflow app - whenever I do a search the app crashes. I've even had the iPod app crash too. I've restored th...

Print variables in java jdb debugger

Is it possible to view variables, passed as arguments in function, if class was compiled without debug flag? I successfully put breakpoint on call, but after that i don't know how to view arguments value. I don't have good source code, soft is obsuficated. Function like this: void a(int var1, boolean var2) - so, i want print var1 & prin...

Problem with get_headers() or switch

This bug has given my hours of anguish. This is a simplified version of what I'm doing: [01] $h = get_headers($url, 1); [02] $resp_code = $h[0]; [03] $resp_code = strtolower($resp_code); [04] $resp_code = str_replace(' ','',$resp_code); [05] echo 'just before going in. $resp_code = ' . $resp_code . '<br/>'; [06] switch ($resp_code) { [0...

view contents of large array?

I have a very large array I need to check for debugging purposes, problem is it crashes firebug and the like if I try to view the data. Is there a way I can dump the array to a text file or something? ...

Unable to get thread dump? Any ideas why my app blocks?

I have a basic java server app that has 100 worker threads that do simple HEAD requests on urls. I'm using HttpClient 4.x for this. A few minutes into the run my program just freezes for a couple minutes and I cannot figure out why. Check out the screen shot of what visual vm monitor reports. You can see it flatline. During this time I...

How to get Debug.WriteLine to work with other processes?

I've got a program that spawns two other proccesses using System.Diagnostics.Process. Their output is captured by the first program: players[p.Key].StartInfo = new ProcessStartInfo { FileName = args[i], RedirectStandardInput = true, RedirectStandardOutput = true, ...

Why does this code give two different outputs for (what appears to be) the same inputs?

I'm trying to program some AI for a game of checkers. My program is saying there are 0 moves for the white player, even though I know there are. The GetValidMoves() function is tested, and works in other areas of the code. To try and isolate the program I saved out the problematic board-state then loaded it back up to see if I would ge...