debugging

Immediate window execution in design mode asp.net

As far I know this is not supported for asp.net projects. It's quite handy for testing static/shared functions. Does anybody have any info if this will be available in future versions? Or if there are any alternative ways to test your functions in design mode? ...

microsoft knowledge base article 810886 + Asp.net

When i run my asp.net web application i got this error, An error occurred loading a configuration file: Failed to start monitoring changes to 'Z:\CR-FIRST\app_code\model' because the network BIOS command limit has been reached. For more information on this error, please refer to Microsoft knowledge base article 810886. Hosting on a U...

Unusual high cpu utilization in ntkrnlpa:FsRtlAreNamesEqual and ntkrnlpa:RtlUpcaseUnicodeString

I am profiling a networking workload application on Windows XP. The VTune profiling result shows unusual high utilization on ntkrnlpa:FsRtlAreNamesEqual and ntkrnlpa:RtlUpcaseUnicodeString functions. From the module level, the workload spends 73% cpu time in ntkrnlpa.exe. In ntkrnlpa.exe module, 42% time is spent in FsRtlAreNamesEqual fu...

Emacs: Set/Reset python debug breakpoint

I use python debugger pdb. I use emacs for python programming. I use python-mode.el. My idea is to make emacs intuitive. So I need the following help for python programs (.py) Whenever I press 'F9' key, the emacs should put "import pdb; pdb.set_trace();" statements in the current line and move the current line to one line below. Senten...

How to set args when debugging a php cli file in zend studio?

In a prompt we can run: php filename.php args But how to set the args in zend studio? I've searched for this some time,and don't seems to find the example. I can only debug without args by simply pressing F5 ...

How to automatically stop debugging when starting to edit code?

I am working on an ASP.NET project. When I am debugging, I often want to switch back from my browser to Visual Studio (2008) and edit some code. Visual Studio then won't let me edit the code, unless I explicitly quit debugging first. Is there any way to configure Visual Studio such that is automatically stops debugging and allow me to ...

Performance Counters in Windbg Crash Dump

Is it possible to see thread performance counters in dump of native c++ application in windbg. ...

Immediate Window automatic cleaning in Visual Studio

Hi. I have a question about debugging in Visual Studio. Is it possible to clear the Immediate Window in Visual Studio automatically before each startup of a debugged application? The >cls command and Context Menu->Clear All are useful, but they are not automatic and require personal attention each time I run the application. Again, Syst...

Binding MigLayout debug mode to the application's logging level?

Debug mode in MigLayout is quite powerful option for development and debugging. It is declared by adding a keyword in layout constraints string: new MigLayout("fill, hidemode 3, debug"); Well, it would be nice to bind MigLayout's debug mode to the logging level of the application. Something like: MigLayout.setLogger(LoggerFactory.get...

Why do I get a SIGABRT here?

I have this code segment in which I am opening/closing a file a number of times (in a loop): for(i=1;i<max;i++) { /* other code */ plot_file=fopen("all_fitness.out","w"); for (j=0;j<pop_size;j++) fprintf(plot_file, "%lf %lf\n",oldpop[i].xreal[0],oldpop[i].obj); fclose(plot_file); /*other c...

Any way of achieving the same thing as python -mpdb from inside the script?

Besides wrapping all your code in try except, is there any way of achieving the same thing as running your script like python -mpdb script? I'd like to be able to see what went wrong when an exception gets raised. ...

Visual Studio 2008 Project vs. website debugging

To create a website I chose 'create website' in VS2008. I soon discovered that the compile options were not available (or at least I could not find the option) like creating serialization assemblies. So I created a project and made the site into a 'project'. As a web site I could have the page open in a browser, save a change to pag...

Debugging in XCode

Hi folks, I am just getting into Cocoa at the moment. I have set up XCode to show the Console and Debugger when debugging. However, when I have killed the app XCode does not return to the project view. It stays in the Debug view, showing the debugger and console. Is there any way I can get it to automatically return to Project view? So...

Tools for debugging / checking XML Serialization

Are there any tools out there for helping to debug / check the xml serialization process? For instance, suppose an item is marked as internal instead of public. There is no compile time error message, nor a runtime error message. If you set a breakpoint and step into the serialization process, the item is just just skipped. In other ...

javascript debugging - is there a way to tell what functions are being executed?

I'm examining someone else's code and I'm trying to find out what functions are executing when I take certain actions. Is there a way in firebug to do this? (or any other way). In this particular case I'm trying to find out what happens when I click the 'next' and 'previous' buttons in the editor found at http://trirand.com/blog/jqgrid/...

stray '\342' in C++ program

I'm getting these errors in my program after pasting in some code: showdata.cpp:66: error: stray ‘\342’ in program showdata.cpp:66: error: stray ‘\200’ in program showdata.cpp:66: error: stray ‘\235’ in program showdata.cpp:66: error: stray ‘\’ in program showdata.cpp:66: error: stray ‘\342’ in program showdata.cpp:66: error: stray ‘\20...

I need to inspect the view hierarchy on an iPhone program.

How do I determine what the view structure on my iPhone program while running on the simulator? ...

Is it possible to debug unit tests in Ruby on Rails?

So, I just moved to new project that is built on Ruby on Rails. I'm new to it and I'm still learning it. I can debug most of the application code, but it seems I can not debug unit test code and code that is tested. When I run unit testing in debug mode, I can set a breakpoint in unit test class code, for example where fixtures are adde...

How do you debug a regex?

Regular expressions can become quite complex. The lack of white space makes them difficult to read. I can't step though a regular expression with a debugger. So how do experts debug complex regular expressions? ...

Breakpoints not working in XCode 3.1.4

I'm using the 3.1.3 SDK (XCode 3.1.4) and I've done all the things in many threads (and books) and I have never gotten breakpoints to stop the execution. I had no problems with this in some earlier versions of XCode, so I know how to do it and how it is supposed to work, but this version just doesn't seem to work for me. Please help as...