http://stackoverflow.com/questions/606794/debugging-ajax-code-with-firebug
This question is quite similar, though old and without real answers.
I'm currently putting together an app that has scripts that get loaded in with an ajax request.
An example:
var main = _main.get();
main.load( someurl );
Where someurl is a page that contai...
So, I have two structs:
struct coordinate {
float x;
float y;
}
struct person {
int id;
coordinate location;
}
and a function operating on coordinates:
float distance(const coordinate& c1, const coordinate& c2);
In my main method, I have the following code:
map<int,person> people;
// populate people
map<int,map<fl...
Python list comprehensions are nice, but near impossible to debug. You guys have any good tips / tools for debugging them?
...
I'm playing around with Apache's mod_rewrite module, and want to know if there is a decent way to output some debugging information? For example, the documentation lists a number of variables available:
%{HTTP_USER_AGENT}, %{HTTP_REFERER}, %{HTTP_COOKIE} ... etc
Is there a way I could output these just to see what I'm working with? I ...
Obviously, I'm pretty new to node.js. I'm attempting to debug a node.js application and I see node.js in the stack trace.
I would like to put some sys.puts calls in there, but I cannot locate the node.js that is being run by my server.
Is there a way to tell where node.js is located? Is there an equivalent to Ruby's __FILE__ in node?
...
Could you please suggest a debugging tool for browser issues?
...
Is there a way to view the latest debug message instead of having to copy and paste something like "_debug/view/1269848287" to the browser everytime?
...
We have a strange problem in our team. When a developer is using Eclipse in Debug mode, SQL Server 2005 blocks other developers from accessing a stored procedure. Debug session typically involves opening Hibernate session to persist an entity which could be accessing a stored procedure used for Primary key generation. Debugging is done i...
I am developing a simple ASP.Net application on a Windows 7 x64 machine using Visual Studio 2008 SP1. The computer itself is a very strong machine.
I am using the built in development server for debugging.
Starting the debug process takes a mindblowingly long time (~20 minutes until the first page is loaded). Sometimes the pages load im...
I'm using a discrete event simulator called ns-2 that was built using Tcl and C++. I was trying to write some code in TCL:
set ns [new Simulator]
set state 0
$ns at 0.0 "puts \"At 0.0 value of state is: $state\""
$ns at 1.0 "changeVal"
$ns at 2.0 "puts \"At 2.0 values of state is: $state\""
proc changeVal {} {
global state
gl...
I have a Visual studio 2008 solution, with 2 projects. A DLL, A, and a Web application, B.
B has a project reference to A, and A.dll and A.pdb are being copied to B's bin/ directory.
Everything is set to compile in debug mode.
I can run the cassini webserver and debug web application B fine, but when I come to call a method in A.dll,...
Running PHP debug session in Netbeans always opens as a new tab in browser (I use Chrome and Firefox).
How to force browser (or Netbeans) to run the session in the same browser tab,
so I do not have n open tabs with the same url for debug?
...
Why does eclipse break with the error "Could not write file: M:\workspaces\eclipse\project.project. M:\workspaces\eclipse\project.project (Access is denied)" when the .project file is hidden (on the Windows file system)? Note: This happens w/ other files as well.
Steps to Reproduce:
1. Install the latest eclipse, I am using eclipse-jee-...
Firstly, I come from Windows-VisualStudio-C++ background. Now I am developing in a Ubuntu environment.
With the help of a Makefile, I built a mymodule.so and copied it to the modules folder within apache. Now, it appears that the module is working fine. But I would like to debug into this module to understand it better.
So, first, is...
Hello,
I need to get stack frame of function from any pdb (All in/out arguments and their types). I got function name and address of certain function from pdb, now I need to know all parameters(in/out) of that function from pdb file programmatically. Is there any way..??
Edit: the functions in question are written in unmanaged code.
R...
I have an issue where an image resource (Default.png) is included in a build for the simulator but is not being included when built for device. I have verified this by looking at the *.app package contents? I have also verified that the resource is selected for the active target. Any thoughts on what else I can look at to debug this?
Th...
I have this chronic issue with iPhone UI development where views sometimes seem to appear on the screen in a location different than what is reported by their frame property. Here is what I am doing to try to debug the issue:
UIView *currentView = self.view;
while (currentView!=nil)
{
NSLog(@"frame: %f,%f,%f,%f", currentView.frame.o...
Usually using Visual Studio's debugger is a breeze. Scanning through Locals quickly shows the values of variables, etc. However, I'm at a loss how to find out the values contained in session state variables? Can anyone give me a hand?
Lets say I put a breakpoint right after:
Session("first_name") = "Rob Roy"
How do I view the value con...
I have this function which returns a datatype InetAddress[]
public InetAddress []
lookupAllHostAddr(String host) throws UnknownHostException {
Name name = null;
try {
name = new Name(host);
}
catch (TextParseException e) {
throw new UnknownHostException(host);
}
Record [] records = null;
if ...
I've obviously been spoiled by Visual Studio, because although I'm just learning Android and the Eclipse environment, debugging apps in Eclipse is becoming a serious detriment to further development.
For example, Eclipse will compile this divide by zero just fine:
public class Lesson2Main extends Activity
{
/** Called when the acti...