debugging

Tools for Debugging ThreadPool Issues in Visual Studio 2010.

I have never spent much time debugging multithreaded .NET apps (or others), and have quite a simple one to solve very quickly. Ideally I would imagined and would lurve to be able to intercept thread creation and use by worker objects, so that nothing unexpected happens while I'm on a breakpoint in my thread. Is that realistic? What el...

Invoking debug session in Eclipse outside Eclipse

How to run debugging session in Eclipse but to invoke it outside Eclipse (instead of doing Run->Debug I want to invoke some process (maybe jdb?) that will start debug in Eclipse). Is that possible? ...

How can I debug this web service http handler?

Hello everyone, I am building a Httphandler following these instructions here It manipulates HTTP POST and HTTP GET. I have a client with two buttons two POST and GET. After i've tested and happy everythings working I move it from localhost to IIS. Now when I do this I get an exception in the POST handler code. How on earth can I de...

VS2010 debugger always breaks

In VS2010, I set a break point (from the left gutter of the editor) on a line of code. After I removed the break point, the debugger always breaks on that line of code. After starting visual studio, the debugger still breaks at the point. Thanks in advance! ...

Can I destroy a class instance even if there are still references?

For debugging reasons I want to destroy a class instance which still as references. Is that possible? It doesn't have to be elegant or stable, because this'll never end up in production code. To clarify: Public Sub Main Dim o as MyClass Set o = New MyClass //o is created, one reference DestroyObject o //Class_Terminate ...

Debugging InProc COM Dll

I have a project in VC++ 6.0 where there is an exe and a InProc COM Dll. I want to be able to place a breakpoint somewhere in the InProc COM DLL, but VC++ won't allow me to set a breakpoint. I have the source code for this DLL, however I cannot figure out how I can place a breakpoint in the code and the debug it? Can someone help me. ...

Is it possible to activate a Nexus One Usb Debug mode with fastboot?

Hi all. What I'm looking for is something like ./fastboot -c usbDebugEnabled=1 to activate a bootlooping Nexus One's USB debug mode to look at logcat with adb. ...

bashdb: Can I examine the data flowing through a pipe?

I'm trying to debug a bash script that involves a command of the form: VAR=$(cmd1|cmd2|cmd3) I can debug it in bashdb, using the s command, which does something like this: bashdb(2): s 2: VAR=$(cmd1|cmd2|cmd3) cmd1 bashdb(3): s 2: VAR=$(cmd1|cmd2|cmd3) cmd2 i.e. it allows me to run the commands in the pipe one by one. Log...

android: how do i mark my app as debuggable?

I want to debug my app from my phone. how do i sign my app so i can do this? i dont know much about the manifest. ...

Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator

I have developed a windows service and this is service is running on my local computer under my account. When I try to debug this service by attaching this as a process in visual studio 2008 I get “Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must b...

PHP CLI application debug in ZendStudio (STDIN)

0 I am trying to debug php CLI using Zend Studio. My problem: I can't get user input from keyboard. This is part of code (method in some class): public function getInput($promt = null, $defaultValue = null) { if(!isset($promt)){ $promt = self::$DEFAULT_PROMPT; } echo $promt; $stdin = fopen ( "php://stdin", "r" ...

format specifier for short integer

I don't use correctly the format specifiers in C. A few lines of code: int main() { char dest[]="stack"; unsigned short val = 500; char c = 'a'; char* final = (char*) malloc(strlen(dest) + 6); snprintf(final, strlen(dest)+6, "%c%c%hd%c%c%s", c, c, val, c, c, dest); printf("%s\n", final...

Java Breakpoint being ignored in MyEclipse 8.5 .... Using JRE 1.6.0.20 and Tomcat 5.5.25

I have scoured the web and stackoverflow and didnt find anything specific to 1.6.20 so I am wondering if I am the only one seeing this... I am building a JSP based on SUN JRE 1.6.0.20, Tomcat 5.5.25 and am using MyEclipse 8.5 . After running my Servlet a few times through the code/debug cycle, the IDE just starts ignoring all breakpoint...

A weird crash...

Hi, I have a piece of code that runs in debug mode in VS2008, C++. The problem is that when I am debugging the code line by line, at a very weird point of the code, it crashes and says: debug assertion faild. Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) The crash point is on the first closed curly bracket (after mesh->edges[e]....

Debugging delayed write failures to External HDD

Does the Window driver kit provide any debug tools to know delayed write failures on a 500 gb Seagate external USB 2.0 powered HDD? ...

ASP.NET: Unable to automatically step into the server. The remote procedure could not be debugged.

Hi there, can anyone help? I am having a problem stepping into code which is a website hosted on IIS7. Basically i have a test class which calls a WCF service like so ISecurityService service = new SecurityServiceClient(); MembershipUser membershipUser = null; membershipUser = service.GetMembershipUser("Mark")...

Using assembly names containing the word "update" in Visual Studio 2005

I've been using Visual Studio 2005 for a few years and I've come across a problem which I'm wondering whether its me being stupid. I'm using Windows Vista and I can't debug a project with an assembly name containg the word "update" without running Visual Studio in administrator mode. For example, I created a new windows forms applicati...

Smarter println that shows the depth in the stack

I am using System.out.println in my code to track the execution of a program and get some useful output. This creates results like this in the console: Main function. Program starts. Method getArea. Getting values Method getSide. Side is 6 Method getArea. First value is 6 Method getSide. Side is 8 Method getArea. Second value is 8 Metho...

How can I debug NSManagedObjects in XCode debugger?

Hi All, How do you get to the values of your Entity (sub class of NSManaged Object) when in the XCode debugger? I get lost among the NSObject and _cd_XXX structures. ...

Debugging SQL in PGAdmin3 when sql contains variables

In SQL Server I could copy sql code out of an application and paste it into SSMS, declare & assign vars that exist in the sql and run.. yay great debugging scenario. e.g. (please note I am rusty and syntax may be incorrect) declare @x as varchar(10) set @x = 'abc' select * from sometable where somefield = @x I want to do something si...