A friend of mine downloaded some malware from Facebook, and I'm curious to see what it does without infecting myself. I know that you can't really decompile an .exe, but can I at least view it in Assembly or attach a debugger?
Edit to say it is not a .NET executable, no CLI header.
...
Few of us would deny the awesomeness of debuggers, but to make it more useful, some tricks can be used.
For example in Python, you can use pass to do absolutely nothing except to leave you room to put a break point and allow you to observe the values in the Watch window.
In C#, I used to do GC.Collect(), but now I use if (false){}
W...
My current process for debugging stored procedures is very simple. I create a table called "debug" where I insert variable values from the stored procedure as it runs. This allows me to see the value of any variable at a given point in the script, but is there a better way to debug MySQL stored procedures?
...
How can I figure out what is actually causing the following error? The page is the same as other pages but for some reason only this page is having this error. It also only happens on the ISP (GoDaddy) who has a trust level of Medium and I can't set a breakpoint and try to catch it.
Server Error in '/' Application.
Security Exception
D...
I have a Windows Event Log entry giving the offset of the failed call triggering an application crash. I have a release build, the corresponding .PDB file, and the source.
I do not have a .MAP or .COD file.
How can I find the failing source line?
...
How can I debug a MinGW EXE with the Microsoft Visual C++ debugger?
...
Hi,
I have a bit of an unusual question. I'm running an old DOS game in dosbox under windows xp and i'm trying to determine when and where it access it's data file.
what can i use that will give me a log of all read requests made to a file? I want to know the "when", "from" and "size" of each file read.
I know my basic 8086/8088 assem...
From googling around it looks like XCode (3.1 in my case) should be at least trying to give me a sane debug view of STL containers - or at least vectors.
However, whenever I go to look at a vector in the debugger I just see M_impl, with M_start and M_finish members (and a couple of others) - but nothing in-between! (it's a debug build, ...
I'm trying to use GDB to debug (to find an annoying segfault). When I run:
gdb ./filename
from the command line, I get the following error:
This GDB was configured as "i686-pc-linux-
gnu"..."/path/exec": not in executable
format: File format not recognized
When I execute:
file /path/executable/
I get the following info:
ELF ...
Let's say I have a source file with many preprocessor directives . Is it possible to see how it looks after the preprocessor is done with it ?
...
I'm looking for a Windows tool that is able to log every action (read & write) that were made to a specific path inside the local Filesystem in order to debug a program (find out why it is sometimes slow and sometimes not).
In theory it could work like a virus scanner that is recognizing every file that any of the running programs do rea...
I have a .net 1.1 project in VS.Net 2003 (using C#) in which I can set a breakpoint in one method, and step through code just fine, but when I hit one specific method (which we also wrote), the breakpoints and code pointers go "whacky", for lack of a better term. If the breakpoint is on line 100, the execution pointer stops on line 101....
Consider the following trivial HTML page that throws an error:
<html><head><script>
throw new Error('oops');
alert('should not reach here');
</script></head></html>
The user I am logged into Vista with is a member of both the Administrators and Debugger Users groups.
If I run Internet Explorer on Vista as an administrator (right ...
Ok, this is driving me nuts.
I've done just about everything I can to enable step through debugging of stored procedures of a sql server 2005 database.
http://arjunachith.blogspot.com/2007/05/debugging-stored-procedures-debug.html
http://msdn.microsoft.com/en-us/library/zefbf0t6(vs.71).aspx
My currents setup:
visual studio 2008 SP1...
I have a solution in Visual Studio 2008 which has multiple projects. One of the projects is a WCF project. Sometimes I just want to debug other projects, but when I press F5, Visual Studio has wcfsvchost.exe launched to host the WCF project even it is not "StartUp Project".
Currently, every time I debugging other projects, I Have to Un...
I found a lot of info about how to debug simple Python programs with Emacs. But what if I want to debug a Django application?
I run the development server and I would like to somehow attach to the process from Emacs and then set breakpoints, etc. Similar to Visual Studio's "attach to process". How to do that?
...
I am wondering if there is a tool that allows to track intermittent OutOfMemoryExceptions in C# code.
Ideally, I am looking for something that would detect OOM situation and once it happens, it would allow viewing the content of the managed heap.
I usually use WinDBG + SOS extension to view the heap state. The problem with this approac...
Howdy,
I have a DataSet with a DataTable that fills a single row through a TableAdapter.
The TableAdapter is correctly filling a DataRow in the DataTable.
I am able to pull data from the DataRow with code like this:
dataFileID = (int)this.dataFileDataRow["DataFileID"];
dataFileName = (string)this.dataFileDataRow["DataFileName"];...
I have a .NET 3.5 Web application on VS 2008 SP1 running on Vista Ultimate 32 SP1. I created an Application under the Default Web Site. So the url to the app is "http://localhost/mysite". The application folder is pointing to the solution folder and it is outside the iisroot folder. Anonymous and Integrated Auth (Windows) is enabled in I...
A method I work with that is called tens of thousands of times started throwing exceptions recently. In most debugging circumstances I would set a breakpoint at the top of this method and run through until I reach the call I'm interested in with a parameter value that triggers the exception. In this case that would be impractical, so I...