debugging

Word VBA Range.Find object works incorrectly

I found an interesting thing: In word 2010, select some text, and run the following VBA code: public Sub Test() With Selection.Range.Find MsgBox .Execute(Selection.Range.text) MsgBox .Found End With End Sub Both the two message box say "False", but both should be "True". Why? Thanks a lot for your suggestion...

How to get lines in Netbeans that starts with echo or print_r?

I know this is not programming related question so to speak, but since we are programmers and we might use Netbeans for PHP development. I am wondering how can I get in Netbeans interface with search, macro or some other way all lines that start with echo or print_r aka as debug lines. ...

Best approach for speedy debug and efficiently fixing large image files upload failure

Consider a normal PHP image upload functionality (not using AJAX) and there occurs this problem of large image upload failing occasionally - less frequently on one test server and more frequently on another test server. Assuming the debugger has not yet started debugging the problem and there are no file/folder permission issues, how to ...

Debugging localhost with fiddler

I've done a search and there appears to but a lot of information - but just not the answer. I want to be able to see the traffic going to and from my local ASP.NET debug session, hopefully in fiddler. Any idea on how to configure for this? ...

Using XDebug from terminal (got only SSH access)

When I develop with the server on my workstation I can use XDebug from my IDE and debug variables, etc. Many times the server is on a remote machine where I have only SSH, so I only edit with vi. In that case is there a way to use XDebug? Is there a client I could use from terminal? ...

stop/compile/run = "Unable to connect to any of the specified MySQL hosts." + crash, why?

In visual studios while debugging my asp.net project i see a change i'd like to make. I cant change code dynamically like i may in a winform app so 100% of the time i stop the app. Write my code and run. Now randomly, a good % of the time i get the error Unable to connect to any of the specified MySQL hosts. with a crash shortly aft...

How to filter the files/project view in Netbeans?

I know this is not programming related question so to speak, but since we are programmers and we might use Netbeans for PHP development. I am wondering how can I get in Netbeans a selection from a list of files quickly. Suppose there are different folders for MVC pattern and I edit 1 section of it. I would like to see the 3 files that I...

Stuttering start to JSP debugging in IntelliJ IDEA

Summary When using IntelliJ IDEA to debug a JSP, I'm seeing the JSP get triggered twice before the actual request from the browser. Does anyone know why? Updated with servlet test below. Overview I'm using (evaluating) IntelliJ IDEA for (effectively) the first time. When doing web application debugging, I'm seeing an odd behavior tha...

Put breakpoint on named function

Is there a way to put a breakpoint on any function in Visual Studio, sort of like bm kernel32!LoadLib* in WinDbg? I know one way is to break at application start, find the required DLL load address, then add offset to required function you can get via Depends, and create a breakpoint on address. But that's really slow, and switching to ...

Script working only on page reload

I'm using jQuery to align images on an horizontal view website, but the script only works when I reload the page. http://joliannelm.steveforest.com/edition/roux-de-service.html The script is called just before This is the script : $(document).ready(function() { var width = 0; $('#page img').each(function() { width ...

How to know where the script stopped?

I was wondering if there was a way to know where the script stopped (ie: file + line), which would be useful for debugging or for removing stupid 'exit' calls lost somewhere in the code. Thanks in advance ...

Why does my .NET 4 targeted application need 2.0 installed to run?

I have a pretty complex WPF and C++/CLI application that was built using .NET 3.5. We've migrated to 4.0 to take advantage of the WPF goodies, so all our projects in the solution are targeting 4.0. On running our application on XP machines with just 4.0 (and MSVC++ 2010 [and 2008]), an error dialog will pop up with the message: "To run...

Not getting a password when starting Java application with -debug option

I want to attach jdb to an already running Java VM, so when I start the program I want to debug, I start it like so on host computer myHost: java -debug myProgram And I'm supposed to get a password myPassword I can use jdb like so: jdb -host myHost -password myPassword But I don't see any password after I type the first line above....

Compiling source code in debug mode using a CodeDomProvider

I have some source code I'd like to compile using the Microsoft.CSharp.CSharpCodeProvider class, and I want to include stuff that's specific to debug builds (e.g., methods marked with the [Condtional("DEBUG")] attribute). I tried setting the CompilerParameters.CompilerOptions property to "/debug", but when I ran the compiled code the de...

debugging asp.net mvc app in iis7.

When I debugging in VS development server all works ok, but on IIS7.5 in Application_Start none of my brakepoint hit. The first brakepoint which work is in default controller. This asp.net mvc2 is on .net3.5 and application pooling in iis is set to DefaultAppPool in integration mode. Where to looking for solution? ...

Blackberry: Efficient debugging on device?

I am currently trying to debug a blackberry application on a real device. I find the setup time to be ludicrous! Here is my workflow: Uninstall the application using Blackberry Desktop Manager (BBDM) it takes about one minute to select the options to uninstall the app... BBDM needs to connect to the device and load the application l...

Debug and Release configurations

As we all know, in Visual Studio there are two predefined configurations - Debug and Release. I have been using them since I started programming and soon learnt their differences. However recently I had to create my own configurations and now I have a question: Are those two configurations defined/determined solely by their parameters/op...

Why is cross thread operation exception not thrown while running exe in bin\Debug

I was debugging an application and somewhere in the code, a thread tries to reach a listbox that was created by another thread. On attempt to access the listbox, the application throws a "Cross-thread operation not valid: Control 'listbox' accessed from a thread other than the thread it was created on" exception while debugging. However,...

Remote Debugging Web Part

I am having trouble getting Visual Studio 2008 remote debugger to hit break points. I have two VMWare virtual machines. One hosts the SharePoint MOSS 2007 Shared Services and Central Admin and has Visual Studio 2008 Professional on it as well. I am using WSPBuilder to structure and deploy my web part. The other machine is a Web Fr...

Advanced debugging with dev-c++

I am normaly using Visual Studio 2008 Express, which is quite powerful, but some geeks in head of competition in programming said that we are allowed to use only Dev-C++ as compiler ( I know it's smaller but I think that competition should be about testing your skills in writting code not using all kind of compilers). Anyway in VS2008, e...