debugging

Learning to debug in Java.

Hi, I'm both learning to use the JPDA on Netbeans and solving the Prime Generator problem of Sphere's Online Judge. I've been reading this tutorial on netbeans.org about he JPDA, but haven't found it of much help. This code, which is based on a Sieve of Eratostenes implementation provided by starblue here, is running like this: 2 1...

Fastest way to debug Firefox addons during development

Debugging a Firefox addon is a slow process: (1) edit source code in a JS editor (2) package into XPI using a build script (3) drag into Firefox to install (4) restart Firefox (5) open the JavaScript Debugger Can we speeden up the process? Like install it into Firefox without a restart, or configure the build script to install it into F...

Is it possible to get the debugger to display the name of the function pointed to by a boost function object?

When debugging code using boost function and bind in Visual Studio, I would like to be able to have the debugger show information about the actual function pointed to by the boost functor. For instance the name of the function, the signature of the original function (before bind was used on it), or the state of the functor. At the momen...

PHP and WordPress: Debugging

I am writing some plugins and themes for WordPress, and I finding it to debug because somehow by the time the page has loaded, $_GET, $_POST and $_REQUEST are all empty. Even with error reporting set on, I am not getting error messages either other than a blank page whenever there is a fatal error. Is there anyway to enable a 'debug mode...

Windows std::ifstream::open() problem

I know there's been a handful of questions regarding std::ifstream::open(), but the answers didn't solve my problem. Most of them were specific to Win32, and I'm using SDL, not touching any OS-specific functionality (...that's not wrapped up into SDL). The problem is: std::ifstream::open() doesn't seem to work anymore since I've switche...

"Error creating session" when attempting to debug application with Eclipse/CDT & gdb

Hey! I'm receiving a rather cryptic error when attempting to debug a simple C++ application. Message: "Error creating session" Stacktrace: org.eclipse.cdt.debug.mi.core.MIException: Process Terminated at org.eclipse.cdt.debug.mi.core.MISession.setup(MISession.java:232) at org.eclipse.cdt.debug.mi.core.MISession.<init>(MISess...

Debugging in ruby 1.9

What do you guys use for debugging in ruby 1.9? rdebug doesn't seem to be compatible.. is there anything out there? ...

Java: How could a breakpoint stop an applet from painting without *ever being tripped*?

In eclipse I am writing some code that crawls a specific webpage and downloads an applet, which it then adds to a JFrame and executes. If I run program without adding any breakpoints, it works perfectly. It loads the applet, and it begins running. However, if I add a breakpoint to the applets update(Graphics g) method, it simply stops...

How do I set up my environment to debug on a Blackberry device?

I'm sorry if I'm asking the wrong thing in stackoverflow, but I've come to my wits end dealing with Blackberry. Documentation, site organization, general levels of support have all come together to the point that I haven't been able to do a whole lot of actual work in this environment. I currently have the Eclipse environment downloade...

What is another way of outputting data from an array rather than var_dump or print_r?

I'm on a 3rd party software and when I output the data from the array using var_dump() or print_r(), it comes out messy. Anyone know of a way to output the data in a hierarchical format or something more organized (or some script that does it for me)? Thanks! ...

Managing trace code in ruby

So I use a lot of trace-code/logging when starting a new project, or debugging an existing one. I was wondering what techniques do you use to manage it, as I always end up deleting it before doing a commit, and then have to rewrite it if ever something else goes wrong. I was thinking about having a development branch with all the trace-...

how can i debug javascript code within a coldfusion template(a coldfusion page) using visual studio 2008

hi everyone, i know i can debug an asp.net page in visual studio 2008, because visual studio knows asp.net pages. but i'm developing coldfusion based application now, and i'm curious whether i can use visual studio to debug the js code in coldfusion pages. thank you in advance. ...

Debugging private access objects

Hi There, I am wanting to find out if it is possible to easily debug a private access field in an object? Here is a scenario for example sake: An application is running a WebBrowser class that is accessed privately from a class. Is it possible to stop the application, change the Html of a page and continue the application? Thanks, K...

What do those strange class names in a java heap dump mean?

I'm trying to track down a memory leak in a java process, using jmap and jhat. Every time I do this I see those weird notation for specific object types, like [S for string arrays and [C for Character arrays. I never remember what means what, and it's very hard to google this stuff. (EDIT: to prove my point, it turns out that [S is arra...

HTTP testing tool, easily send POST/GET/PUT

I'm in the need of a tool to help debugging a webapp - anyone know of some simple client tools that allow you to easily send and construct customizable POST/GET/PUT/DELETE HTTP requests ? ...

In Chrome JS debugger, how do I print all the properties of an object?

I have opened the Javascript Debugger (Ctrl+Shift+L) in Chrome and started using it to set breakpoints in my code. This is a much different interface compared to Firebug, (it's all command line driven) so I'm wondering how to do a simple thing like print all the properties of an object. If I have an object like this: var opts = { ...

Remote debug Jetty (no mvn, no plugins)

Hello all, Past scenario - Work with Tomcat and start in debug mode and Remote Debug with Eclipse. - Define a port and connect with eclipse in this debug/remote port. - Use to debug servers in other hosts/servers Today scenario Now, I'm using Jetty and I've try to do the same, but with no success, could anyone help-me with that? I ...

Is There a Visual Studio 2005 ASP.NET debug and release build

Is there a "debug" and "release" build in VS 2005? If so, how do I switch between the two? ...

Change how variables look in debugger, vb.net 2003

I've been given an old VB.net 1.1, Visual Studio 2003, project. When debugging DateTime shows as #09:34:00 AM#, the date-part is hidden. I would like to see which date the DateTime is. I've tried to modify mcee_cs.dat, but that doesn't seem to do anything. Is there some other file I should modify to get my desired behavior? /L ...

What is the priority on NoStepInto entries in VS2008?

I've been looking into the NoStepInto feature of Visual Studio. Andy Pennell's post How to Not Step Into Functions using the Visual C++ Debugger has been extremely helpful. But as far as I can tell, in VS2008 the string name of the rule no longer has to be an integer, and no longer has any effect on the priority of the rule. I have ...