debugging

Javascript Trojan Dissection

Hi all, I've recently been playing with allot of Javascript and started to consider that I couldn’t encounter a piece of Javascript that I wouldn’t be able to debug. Well I was pleasantly surprised and angered today when we discovered a number of javascript redirect trojans on our company’s website. Most of the code we found I was abl...

Viewing variable values at runtime in VisualStudio

Hello, Is there any tool I can use to view the values of variables live as the code executes in VS? Right now I can see them only when I keep a breakpoint.But,the problem is that the code works perfectly fine when I keep a breakpoint.it messes up only when it runs fast. Any help would be appreciated. Thanks ...

How can i activate --trace-asci debugging with curb/curl for ruby?

Standard curl supports command line option --trace-asci and --trace. Anyone any clues on how to set this option for a Curl::Easy object? ...

Java object ID in jvm

There is an object ID is displayed near the object value in eclipse While debugging. Sample screenshot: For example: 28332 is an ID of session object. This id is neither a hash code nor a System.identityHashCode. Does anybody knows - how to get THIS id of object? ...

Is there any Javascript Debugging API?

I want to write some Debugging Tools. First of them would be a Smalltalk like object browser. But i need some API's to extract methods from objects, dumping local and global variables and the stacktrace. It's okay if this is Webbrowser specific. But please tell me which Webbrowser has an documented API for this. EDIT: I would prefer a ...

Can I make Visual Studio create the Debug DLL as XXXd.DLL instead of XXX.DLL ?

I have found a solution for this, but it only works if you use .DEF files (I don't). I wonder if this can be done without .DEF files. ...

debugging a sharepoint baselayoutpage

is it impossible to debug? I am running 64-bit Windows Server Enterprise, and trying to debug my solution on Sharepoint which includes a dll that has baselayoutpage pages. When I try to atttach the process to the Visual Studio debugger (VS2008) it says break points will not be hit. I have been pulling my hair out on this one, I have trie...

Is there a tool that will track/log managed code?

I'm working on a bug where we have a use case that works, and a subtly different use case that doesn't. The code base has next to no logging, and I don't want to spend time now sprinkling logging throught the code base, though I do have time budgeted to do that at a later date. Is there a tool that logs a program's actions ie, logs each...

Debugging a foreach loop in C#: what iteration is this?

Other than setting a debug variable and incrementing it every time you start the foreach, when you break in with the visual studio debugger connected, is there any way to tell that this is the Xth time through the loop? I guess this would be a feature of visual studio if anything, not something that would be added to the compiled code....

Can't delete objects due to foreign key constraints

This is a strange one Take this schema: Contact: actAs: [Timestampable,SoftDelete] columns: first_name: { type: string(255), notnull: true } second_name: { type: string(255), notnull: true } relations: Forums: class: Forum refClass: ContactForum local: forum_id foreign: contact_id fore...

guacamole vnc viewer - how to ?

hello, i have my tomcat server running, i downloaded the guacamole vnc viewer, and i followed the instructions on : http://guacamole.sourceforge.net/ however when i type :http://localhost:8080/guacamole/ i get error message : http status 404 The requested resource () is not available. anyone using guacamole, plz can you explain the st...

Monitoring application/tracking memory

Hi , I would like to "listen" an application on windows. When i say "listen" i mean that i have an application and i want to monitor some data displayed in it ( so it could be about monitoring the memory of my process and just reading some adress ( similar to what game wizard used to do ). Any other idea is welcome Thx ...

Release Mode vs Debug = "false"

I'm trying to find a definite explanation of what effect compiling in release mode has on a .Net 3.5 web application versus debug="false". So far it looks like setting debug="false" has the same effect and compiling in release mode has been depreciated but I can't find any firm evidence this is the case. This question looked promising b...

Cocoa-Touch - Loading a text file into an array

Whats wrong with my code.. I want it to read a text file like Item1 Item2 Item3 Item4 Item5 and parse it into an array so each line is a separate object in thus array. When you check the console it prints (null) -(void)parseIntoArray{ //parse the files into seprate arrays. allPools = [[NSMutableArray alloc] initWithContentsO...

How Firebug works internally?

I have debugged through JavaScript using Firebug more than hundred times without worrying about whats happening there. I want to know how exactly a Firebug handles JavaScript/DOM debugging. Say I set a break point on some statement inside a method and start debugging. I want to know what's going on in there? ...

How to know that the application is launched by debugger (VisualStudio) C#

Hi all, In my c# code I'd like to know whether the app has been launched by the debugger (in my case VisualStudio). Does anyone know how to get this information? TIA ...

How to debug ExtJS in IE8

Hi, i'm trying to debug an ExtJS application using IE8 but the file ext-all-debug.js it's too big for the internal IE8 debugger and takes ages to load the code, is there any faster Javascript debugger for IE8 ? Another solution that i came up with is to include every extjs file instead of the big ext-all-debug.js but i cant't find the fu...

Running JVM inside Windows C console app becomes zombie if debugging is stopped in the middle

I wrote a C program that starts a JVM using JNI_CreateJavaVM. The program is a Windows console application (VC 2008). JNI version is 1.6. If I debug the program and then stop the debugging in the middle, before it reaches the call to DestroyJavaVM then the CMD.exe window remains open and I'm unable to close or kill it. If I look at the ...

Is it able to setup a "data breakpoint" on return value

The scenario is: there is a deep call hierarchy and each call will return HRESULT. If something bad happens, function will return S_FALSE or S_ERROR, and if a call return error, the caller will directly return the error code. normally all function will return S_OK. So when debug an issue, I need to do many trials, see which call returns...

eclipse debug stop on error line

In Visual studio when an error happens during debug, the line causing the error is jumped to in the source code and the error displayed. Is there a way with Elcipse to do the same? The Debug perspective appears, but the line causing the error and the error message are not immediately apparent. ...