watch

How do I watch a file for changes using Python?

I have a log file being written by another process which I want to watch for changes. Each time a change occurrs I'd like to read the new data in to do some processing on it. What's the best way to do this? I was hoping there'd be some sort of hook from the PyWin32 library. I've found the win32file.FindNextChangeNotification function bu...

invoking functions while debugging with Visual Studio 2005?

Here's something I know is probably possible but I've never managed to do In VS2005(C++), While debugging, to be able to invoke a function from the code which I'm debugging. This feature is sometimes essential when debugging complex data structures which can't be explored easily using just the normal capabilities of the watch window. The...

outputting the value of a "Watch" in Eclipse to a log file.

I have a piece of Java code I can't edit which I want to debug. The issue is that one of my 10,000 records has a data error and is causing the application to crash. I can remote debug the live application and add watch which would pick up the id of the record as each is processed. The problem is when the "bad record" is processed and t...

Variable watch in PHP

Does PHP have the ability to watch a variable (or object property) and run a function when its value changes, similar to Javascript's watch function? ...

How can I stop execution in the Visual Studio Debugger when a private member variable changes value?

Let's say my class has a private integer variable called count. I've already hit a breakpoint in my code. Now before I press continue, I want to make it so the debugger will stop anytime count gets a new value assigned to it. Besides promoting count to a field and setting a breakpoint on the set method of the field, is there any other ...

Boolean Javascript expression returns true in Firebug Watch window but false in the code?

I have a web page with an IFrame named "objFrame". In a Javascript file, the following statement is executed: var useWindow = (typeof(window.objFrame) != "undefined" && typeof(window.objFrame.contentWindow) != "undefined"); When running the code (normally or stepping through it with the debugger), the expression (typeof(window.objFra...

Watching variables in SSIS during debug

I have a project in SSIS and I've added an Execute SQL Task which sends its result out to a variable. I wanted to confirm the value because I was worried that it would try to write it out as a resultset object rather than an actual integer (in this case I'm returning a COUNT). My first thought was just to run it in debug mode and add th...

Design of the watch variable (debug) window

I have implemented a script language which supports creation and usage of .NET objects. To make easy to use I want to implement a user interface for looking up variables in memory. I checked the debug/watch variable windows in Visual Studio and in Eclipse and they both seem to use the same pattern - tree view representation of variabl...

How can I use "watch" GDB?

I tried to watch the change of the "int a" by the command "watch a". However, the program does not stop, when it changes to 12. Why? /* FILE: test.c */ #include <stdio.h> #include <stdlib.h> int main(int argc, char** argv){ printf("Hello world\n"); int a = 12; a = 10; ...

How to continuously update VS2008 Watch Window (without stopping execution)?

Hello, In Adobe Director, there is a watch window that updates while my application runs. For example, if I have a game application and am watching an instance of a ball object, I can see all of its values (velocity, altitude, state variables, etc) updating in real-time as the application is running. I can also add any other object to...

JavaScript - Watch for object properties changes

I just read Mozilla's documentation for the watch() method. It looks very useful. However, I can't find something similar for Safari. Neither IE. Do you use this method? How do you manage portability across browsers? Thanks! ...

Evaluate Expression in RAD Studio 2007's Watch

I know that most of you might have noticed now. When you try to evaluate an expression using watch on RAD Studio 2007, it does not evaluate. For example, if I had a vector, I could not do "vecData.size()", if I do "vecData.size", it just gives an address. Is there any other way to watch the size and view each element of the vector in R...

Loop SQlite3 database continuously, when query found run script for first 3

I have a SQlite database gets populated when ever someone adds a filename and dir to it, then I want the script to read the newest 3 entries (done with the "LIMIT 3") then I want this script to take those 3 entries and start the "script1.sh" for each of them, then once the script1 has finished one of the 3, I want it to look back into th...

How to edit a watch expression in visual studio 2008 with the keyboard?

In visual studio 2008, when the focus is on a watch expression in the watch window, how can I edit this expression without double-clicking the mouse? In visual C++ 6, it was the obvious: the F2 key. This is the consistent Windows behavior in listviews, e.g. for renaming a file in Explorer, editing a cell in Excel, etc. For some reason ...

Watch a web page for changes

I googled and couldn't find any could that would compare a webpage to a previous version. In this case the page I'm trying to watch is link text. There are services that can watch a page, but I'd like to set this up on my own server. I've set this up as a wiki so anyone can add to the code. Here's my idea Check if previous version ...

Is there a command like "watch" or "inotifywait" on the Mac?

I want to watch a folder on my Mac (Snow Leopard) and then execute a script (giving it the filename of what was just moved into a folder (as a parameter... x.sh "filename")). I have a script all written up in bash (x.sh) that will move some files and other stuff on input $1 I just need OSX to give me the file name when new files/folders...

jQuery: Watching for nodevalue change

I want to watch for the nodeValue change of an element that's edited with contenteditable. Basically, I want to run a function on change of the nodevalue. I found this post: http://james.padolsey.com/javascript/monitoring-dom-properties/ Which seems to have a plugin for what I want. Here's the watch plugin: jQuery.fn.watch = function...

Show CPU Registers in VS2008 watch window

Is it possible to add CPU registers (RAX, EAX, flags, etc etc) with a specific syntax in a watch window so they are displayed like regular variables and printed in base-10 (or hex if Hexadecimal Display is on) ? e.g: if Registers window shows RAX = 00000000027A6468, adding %rax to watch would result in: Name Value Type %rax ...

How to understand if a request made to WCF?

Is there any event which allows me to get informed when a client accesses any of the listening WCF service methods ? ...

Watch Date in Eclipse for Java Application

I have been trying to add to the Watch window a Java Date object (java.util.Date). Sometimes, when i hover over a Date in the source editor view, it shows the Date value in a readable format (e.g. 2009 Oct 26 14...) but sometimes, it just does not show the Date value but it only shows the declaration of the date variable/identifier. So a...