debugging

How to obtain ASP.NET debugging path using reflection?

I'm trying to load an assembly and instantiate a type contained on it using reflection. The assembly is included in the references and is copied to the Bin folder after publishing, but when debugging, the assembly is not found. I noticed that each assembly is deployed to a different temp folder for debug, something like: C:\Users\Raf...

How to debug Google App Engine scripts with PyScripter

The situation is as follows: I have downloaded the Google App Engine SDK. I have written my "helloworld" app that runs locally in my computer. I have to use PyScripter as IDE. I can't use Eclipse, that would not be a valid solution to my problem. In PyScripter, I have set a "Run Configuration", so that an instance of the server run...

Debugging outofmemoryexception

In the bug fixing of a small ASP.NET/C# web app I have made, I have encountered an OutOfMemoryException. There is no tips as to where to look as this is a compile time error. How can I diagnose this exception? I am assuming this is exactly where memory profiling comes into play? Any tips? Thanks ...

Turning on debug output for python 3 urllib

In python 2, it was possible to get debug output from urllib by doing import httplib import urllib httplib.HTTPConnection.debuglevel = 1 response = urllib.urlopen('http://example.com').read() However, in python 3 it looks like this has been moved to http.client.HTTPConnection.set_debuglevel(level). However, I'm using urllib not http....

How to programatically add a tracepoint for Visual Studio?

Hi, I am looking for a method to monitor a running program that I have the source code. Basically, when the user runs it, I need to know what functions and parameter is called sequentially. I can write a trace output code to all functions to achieve this. However, I am not allowed to modify the source code. I found out that Tracepoi...

How can an application load a DLL without its name?

I have disassembled a VB6 application that calls a function in a DLL library, but I can't find any reference to the DLL in the disassembly. How can the calling code load this DLL? It is dynamically linked, as I can observe the effects of removing and replacing the DLL. I'm using IDA Pro Free, the calling application is a VB6 app, and ...

Visual Studio Debugging/Building

I have a solution that has a plain old asp.net website and a winforms app. I have the winforms app set as my startup application. When I press (CTRL+)F5, it just runs the app without building. So, my changes aren't built into the program. What should I do to fix this? EDIT I don't want to have to go to the build menu and then debug....

Dreamweaver Javascript Debugger

Does DW cs3 have a javascript debugger? The only info on anything close to is says I need to click on the 'preview/debug in browser' button which does open the page, but no debugging ever happens when the page has an error. I also see no way to set break points or walk through the code. Thanks in advance. Update 2 I thought I'd...

Are there known false positives issues with Valgrind?

Hello, Are there any known false positives with Valgrind? (myself I get a 'Conditional jump or move depends on uninitialised value(s)' with the 'fmemopen' function, writing in 'c' and gcc, can I be sure it's real?) EDIT: are there known issues that are not in the suppression files? Are there some things one can do in a program, that ...

Books on Debugging Techniques?

Are there any books on debugging techniques? A friend of mine is learning to code and he asked me this question. I told him I don't know of any. Is it that you just have to go through the School of Hard Knocks to learn? ...

how can I debug more than one script in pyscripter?

I installed portable python on my USB drive, and I really like pyscripter a lot. The thing is, after I start debugging a script, the IDE kind of freezes ( waiting for the code to reach a breakpoint ). This means I can't do anything with it ( I can't even save files ). It would be very useful to be able to debug more than one script at a ...

How to identify problem when program crashes without showing error?

Hello, Please let me know what steps I need to follow when my application crashes and closes showing the dialog containing "Don't send" and "Send error report" buttons. What can I possibly do other than looking at the event viewer to solve this? Thanks ...

What on earth could cause this PHP error? Bug in PHP?

I received the following error: [27-Apr-2009 10:26:06] PHP Fatal error: Cannot redeclare alphanumeric() (previously declared in /home/iddoc/public_html/lib/common.php:6) in /home/iddoc/public_html/lib/common.php on line 8 Notice this: /home/iddoc/public_html/lib/common.php:6) in /home/iddoc/public_html/lib/common.php on line 8 He...

How to idenfiy if the DLL is Debug or Release build (in .NET)

I'm sure this has been asked before, but google and SO search failed me. How can I identify if a DLL is a release build or debug build? ...

Is there any way in Java to log *every* Thread interrupt?

I would like to somehow log every time Thread.interrupt() is called, logging which Thread issued the call (and its current stack) as well as identifying information about which Thread is being interrupted. Is there a way to do this? Searching for information, I saw someone reference the possibility of implementing a security manager. ...

Tracing MFC message handling

Trying to upgrade an MFC app to use the new MFC feature pack, we are loosing the messages from a context menu. The menu appears and can be clicked, but the message seems not to be handled anywhere. We overrode OnCmdMsg() in lots of places but to no avail, the context menu's command message are not caught. Is there a way, tool, or approa...

Why is Visual Studio skipping over my Exception from a ThreadPool work item?

I am aware of this other post, but it doesn't seem to apply to my situation. First off, here is my environment: Windows XP 64-bit SP3; Visual Studio 2008 w/ SP; .NET 3.5 SP1; WPF application. My problem is that I cannot seem to step to where my exception happens. It just keeps running instead of continuing the debugging session. Her...

View Reduction Steps in Haskell

I was wondering if there is anyway to view the reduction steps in haskell, i.e trace the recursive function calls made, for e.g chez scheme provides us with trace-lambda, is there an equivalent form in Haskell, and how to use it? Thanks, Shiv ...

Visual Studio 2008 - how to step into (F11) reflected code

What needs to be done to be able to step-into (F11) the reflected code. I am creating the object using reflection: myObject.GetType().GetConstructor().Invoke(myParams) and I want to go into the constructor's code. If I press F11 it just skips the constructor's code ;( but at the same time if I put a breakpoint at ctor and hit F5 - ...

Modify/view static variables while debugging in Eclipse

As per the question. In the debug view, there's the Variables frame. It shows all the values of member variables of the current object, and all of the local variables, but it doesn't show any static variables of the object's class. How do I get to these? Some googling has suggested I press the button on the toolbar, but there's nothing...