debugging

How to use "Run to cursor" or Debugging in VS2005 when an event ocurs n'th' time where n>1

Consider i have a window Application,developed in Visual Studio 2005, having a button. I need to use "Run to cursor"/Debug when the button is Clicked Third time(or some nth time) and not First time. How can i do this.? Consider this being a sample code. using System; using System.Collections.Generic; using System.ComponentModel; using...

Firebug 1.3.3 - Doesn't always allow script debugging?

I've been working with firebug for a while now, but I've noticed recently that it doesn't always allow you to set a break-point in your code for some reason. The line numbers in the firebug debugger turn all grey and you can't get the program to stop on any of them. When I can get it to work, the lines you can break on turn green. I...

Use NetBeans to inspect live Java objects?

In Python, I'm used to being able to start a debugger at any point in the code, then poke around at live objects (call methods, that sort of thing). Is there any way, using NetBeans, to do this? For example, I'd like to be able to break at the line foo = bar().baz().blamo() and run bar(), bar().baz() and bar().baz().blamo() to see what...

haskell: error trying to call putStrLn in function

I'm trying to put a 'print out' function call in a haskell function. (a simple debug message). Below is my code and error message from the compiler (ghc 6.10). I don't quite understand why it is lumping the putstr call and the empty array. The empty array is the return value for that particular case (the print out message is actu...

how to print variables from a core file without debugger

is it possible to print the values of variables from core file without using any debugger(like gdb or dbx) ...

How can I debug applications under Java Web Start (JNLP) ?

I know how I can debug a remote Java VM with Eclipse. Bit how can I do it with a Java Web Start program. I have a problem that only occur in Java Web Start. It must be security related. I need a solution that work with a current Java VM like 1.6.0_12. ...

hide non-exists variables in Eclipse java debugger

for example I have an ArrayList with 2 elements, but Eclipse Java debugger shows me 10 elements where 3-10 are just nulls. How to disable this "feature"? details on image P.S.: Mac OS 10.5.6, Java6, Eclipse 3.4.2 ...

how intercept xhr with greasemonkey

hi, i've tried the following code : (function(open) { XMLHttpRequest.prototype.open = function(method, url, async, user, pass) { this.addEventListener("readystatechange", function() { console.log(this.readyState); }, false); open.call(this, method, url, async, user, pass); }; })(XMLHttpRe...

Visual Studio Debug Visualizer for all types

When developing a Visual Studio (2005) Debug Visualizer, you have to specify the target type you want to visualize (i.e. a DataSet Visualizer would specify its target at TypeOf(DataSet)). However, what if you want your Visualizer to be able to visualize any object type? Specifying the target to TypeOf(Object) doesn't seem to work. Edit:...

Does pdb provide information about type definitions in source files?

I know about DIA api, dbghelp. But can i use them to extract type definition location info such as file, begin_line, begin_column, end_line, end_column from my assembly and pdb generated? If the answer is yes, can someone point me to the simple example out there? ...

Configuring Visual Studio Source Server / Symbol Store against unsupported Vault SCM app

Hi, I am trying to configure our in house development code as a symbol server, with source control file access when debugging in Visual Studio 2008. We can use this on other projects that reference our core set of libraries. Sadly, we use SourceGear Vault for our SCM system, which is currently unsupported when it comes to indexing our ...

Debugging scripts added via jQuery getScript function

I have a page that dynamically adds script references via jQuery's $.getScript function. The scripts load and execute fine, so I know the references are correct. However, when I add a "debugger" statement to any of the scripts to allow me to step through the code in a debugger (such as VS.Net, Firebug, etc.), it doesn't work. It appea...

Finding where memory was last freed?

Very general: Is there an easy way to tell which line of code last freed a block of memory when an access violation occurs? Less general: My understanding of profilers is that they override the allocation and deallocation processes. If this is true, might they happen to store the line of code that last freed a section of memory so that...

Release/Debug Configurations with Flash + AS3

I recently ran into an embarrassing situation with some Flash coding where I had to accidentally sent clients a build where not all my debugging flags and variables were unset. (It was sending requests to the debug instead of release server, etc...) Part of this was poor code organization on my part; I've resolved that. However, Flash ...

How to debug PHP with netbeans and Xdebug

I have recently tried to get going with Netbeans 6.5 after it rated so highly in the IDE review by Smashing magazine. http://www.smashingmagazine.com/2009/02/11/the-big-php-ides-test-why-use-oneand-which-to-choose/ My main reason for switching from Notepad++ is that I'd like to be able to debug my code and set through it. I have follow...

Debugging "terminating Uncaught exceptions" in XCode

So my app is crashing, and I'm kind of at a loss on how to use XCode to debug. I found a forum on macforums about putting a breakpoint at "objc_exception_throw"... although I'm not really sure where to go from there. Any general guidelines for debugging in XCode? ...

How can I get some outside input on my web app's robustness?

I am looking to get some outside eyes to do black-box testing on a simple webform-based experiment/game I made. uTest looks very good, but it's aimed at companies with lots of cash, whereas my app is just a small-time academic research project. I want to make sure that my app won't break easily, and that it's resistant against basic reve...

How can I protect my web-based game against cheaters?

I just wrote one of my first web applications (Linux, Apache, MySQL, Django), and would like to launch it publicly. It's a webform-based task disguised as a game; I intend to eventually put it on Amazon Mechanical Turk and give small bonuses to people who achieve certain scores. Even though this app does not have a tremendously high sec...

MS Source Server - source stream is apparently not there when viewing with srctool

Hi, I have been playing around with the MS Source Server stuff in the MS Debugging Tools install. At present, I am running my code/pdbs through the Subversion indexing command, which is now running as expected. It creates the stream for a given pdb file and writes it to the pdb file. However when I use that DLL and associated pdb in v...

How to debug a shared library using eclipse/gdb on Windows?

At my university we are currently developing a VST-Plugin on Windows using open source tools. My professor is pretty fond of Microsoft Visual Studio and rather sceptic towards open source tools such as Eclipse, GCC, Subclipse etc. However, until now I was able to solve all of his problems and it would be a shame if he could not be con...