debugging

Ping Class SendAsync Help

I am new to programing and can not find or know what to search for to debug the thread that is started with the SendAsync Method. The code works good using the Send Method but when using SendAsync it goes to waiter.WaitOne() but i never get the callback (I think thats what its called) to myPing_PingCompleted. So two questions how do I de...

C# trigger, Surround SCM & werfault.exe

We are in the process of setting up surround scm as our source control program. We created a trigger which will run when changing the state of a file/repository. When we run it on many files the server gets several werfault.exe processes in the process list. I realize its windows error reporting, however, there is no popup. I'm trying to...

Python memory leaks

I have a long-running script which, if let to run long enough, will consume all the memory on my system. Without going into details about the script, I have two questions: Are there any "Best Practices" to follow, which will help prevent leaks from occurring? What techniques are there to debug memory leaks in Python? ...

Where can I find the source code for Java's HttpURLConnection.getOutputStream()

Where can I find the actual code (be it java or native) that's executed by: new URL("http://google.com").openConnection().getOutputStream() Bonus: how I can debug it from IntelliJ IDEA ? ...

How to debug sql in visual studio

Is there a way of debugging sql in visual studio ...

Is it possible to create a Debug-only method in .NET?

Is it possible to create a method which performs debugging assistance like the System.Diagnostics.Debug class? I'm looking for a way to construct a method which when called by an assembly compiled with the DEBUG conditional compilation symbol defined, results in an operation, and which is a no-op when called by an assembly without the s...

Process that I attach to debug disappears

I am trying trying to attach to a process in Visual Studio, and I can't find that process that I usually attach to during debugging. What is going on with Visual Studio? ...

Looking for a way to trap CPUID instructions

I am looking for a neat way to trap and fiddle with the CPUID instruction of Linux processes. Played around with ptrace() and patching all cpuid opcodes in all executable mmap'ed regions that are created by a process, replacing them by int3's. Didn't work that well since the CPUID opcode bytes appears quite often as parts of other longer...

Set debugging macro conditionally with make

In my C++ project, I have a convention where whenever the macro DEBUG is defined, debugging printf-esque statements are compiled into the executable. To indicate whether or not I want these compiled into the executable, I normally would pass the macro name to gcc with the -Dmacro option. So, in the Makefile I (currently) have: CXXFLAG...

How can I introduce sentences and lines of code that will only be executed in debug mode?

I have one application in wich I need to make code changes almost all time (changing crytographic procedures, etc...), so my idea is to have all my debug parameters and variables activated each time I'm making changes. I don't want to be commenting and uncommenting code all the time, so my question refers to simple lines of code that wil...

Breaking on the code in the last executed method

I have an ASP.NET web app which is small yet has a fair amount of C# behind it. I am trying to run some code, which is dependent on a class library/.dll I have produced (containing business logic). When I debug, after I bind to datasource property, I get an object reference not set to an instance object. I know how to fix these errors ...

console.log() statements do not appear in Safari error log

I am debugging a Safari-specific javascript issue, and I can't get console.log to output to the error log. This is a documented feature of Safari (I'm using version 4.0.3). These statements in my code just seem to be ignored, however. Any ideas why? I'm not finding leads through Google. ...

Debugging 64-bit C++ from 64-bit .NET Code - how?

Visual studio tells me that 64-bit managed+unmanaged code debugging is not supported. Has anyone managed to resolve this problem? ...

Are there any good and FREE PHP IDEs out there

Most of the good PHP IDEs i find are not free, so does anyone know of a good, yet free PHP IDE??? As in an IDE with features like auto completion debugging code formatting code highlighting database previewing etc ...

Being Able to Debug a WinForms Application and Avoid the GUI from Freezing

UPDATE: I pasted the entire source for Mr. Kraft. Having said that, this is probably my first real WinForms app, so please dissect and critique as well if you feel like it. Also, to make the critiquing less painful for me, I should note that I wrote this app very quickly, so I have a task of refactoring and improving design for it assign...

How to debug javascript in asp .net MVC?

I am using Visual Web Developer 2008.I have debug my javascript at localhost by adding a breakpoint/debugger in js file.It works perfectly in IE8 before. This nice debug function is broken, after I try a developer tools(Press F12 in IE8). ...

R script line numbers at error?

If I am running a long R script from the command line (R --slave script.R), how can I get it to give line numbers at errors? I don't want to add debug commands to the script if at all possible -- I just want R to behave like most other scripting languages ... ...

How can I testrun my SSL-Required ASP.NET MVC Website in Visual Studio?

My ASP.NET MVC application enforces the use of SSL (nothing happens at all over plain HTTP) - session cookies are required to be SSL & HttpOnly; my authorization module checks that no communication goes in or out over anything except HTTPS. The problem: How do I debug/step-through in Visual Studio now? I still want to be able to do F5 q...

VSTS 2010 Debug Feature

I heard of a feature supposedly included in VSTS 2010, but now I can't find any mention of it. It was a tool that allowed a developer to attach a debugger that was on a flash/jump drive and start debugging a program. It did not require any installation. Note: I am not referring to the Historical Debugger. Anyone else heard of this? ...

Debugging questions

If I have a an app which relies on a .dll which contains my core classes. I have noticed when debugging the main app and it steps into the .dll, the debugger steps through (At my request) blank lines!? Why is this? Sometimes when I debug an asp.net app and get a ysod, I don't get the name of the file with the bug or line numbers, but I ...