Hi! I'm an asp.net newbie. I have inherited a base of asp.net mvc code and in order to help myself orient better in the heaping pile of source in front of me I'd like to step through it in a debugger. However, being the microsoft platform newbie I am, I don't know how to go about this.
Our application serves content under many different...
I'm having trouble the same instance of a C# class being used in multiple places. I'd like to be able to tell at a glance in the debugger which instance is which, so I've added a field called DebugUID like so:
public readonly string DebugUID = Guid.NewGuid().ToString();
and I've also added the attribute [DebuggerDisplay("DebugUID= {D...
We're creating an application that understands some command-line parameters. There are some default's we would like to supply on the command-line when debugging, and these are easily set in the project settings as explained here.
The thing is visual studio stores these settings in a *.csproj.user file, and the default settings for ...
I hope this I can explain what I am trying to achieve: I want to be able to create a unit test in the same solution as my web service, have it fire up the web service environment and be able to set breakpoints in the unit test code and in the web service code and have the debugger stop on both of them. Is this possible?
...
In my main Sinatra controller, I want to debug the params hash after it is POSTed from a form.
I have added:
puts params.inspect
and
set :logging, :true
The params.inspect works if everything goes well. But if an error happens before the controller is executed I'm not getting any information about the error like I would in Rails b...
Howdy--
Subject says it all really...Is there anywhere a good tutorial for Xcode's Debugger out there? I'm finding dribs and drabs of stuff but nothing comprehensive or that goes deep enough. My problem right now is that this...
#0 0x90d9c688 in objc_msgSend
#1 0x30506515 in NSPopAutoreleasePool
#2 0x30901697 in _UIApplicationHandle...
I'm trying to track down a bug that occurs when I click a particular element on an aspx page...
In the past I've had to track down the class that handles that particular event and put a break point on the line that I think should be hit. Often it takes me several tries before I finally find the correct class....especially if the class i...
I want to put a conditional breakpoint in windbg.
For example lets say LoadLibrary API.
How can I put breakpoint such that it should it whenever user32.dll get loaded.
> x kernel32!LoadLibraryW
It will give some address [XXXX]
Now I can put breakpoint as
> bu [XXXX]
but this will hit for all calls to LoadLibraryW.
Any suggesti...
I'm still haven't properly learned how to use the Xcode debugger, but I was wondering if anyone has some favourite debugging tips, things you can quickly insert into code to see the state of objects. Anything which would help me get more of a grasp on the internals of Objective-c.
Mostly I rely on NSLog(@"%@", myObject) to see what's ha...
Does anybody know a class, that writes the structure(public (static, instance) members)/data of an object/class to string (for debugging-purposes) or even generate fancy html-divs or something like that?
...
I have a C++ application that uses a third-party library. Every here and there in my code there're calls to that library. I would like to trace all such calls.
It would be easy if those were functions in my code - I would insert a macro that would obtain the current function name and time of call start and pass those to a local object c...
So I'm (remotely) debugging some a java/jboss application in Eclipse, stepping through line by line. At one point, an array of GridSquare objects (GridSquare is a fairly simple, standalone class, contains a few properties and methods) is created by a method call, i.e:
GridSquare[] squares = this.theGrid.getSquares(14, 18, 220, 222);
....
How can I find the current directory for a .NET application
running under the Visual Studio debugger?
Update 1. To be clear: I don't want to change the code
or get information in the program itself - I just want to
get information about the application currently being
debugged.
While debugging a .NET Winform application (mixed VB.NET a...
I'm getting an Undefined Instruction error while running an embedded system, no coprocessor, no MMU, Atmel 9263. The embedded system has memory in the range 0x20000000 - 0x23FFFFFF. I've had two cases so far:
SP 0x0030B840, LR 2000AE78 - the LR points at valid code, so I'm not sure what causes the exception, although the SP is bogus. W...
This line is 79:
window.addEvent('domready', function(){
mySlide = new Fx.Slide('advert');
mySlide.hide();
});
It also does not like this line:
this.wrapper = new Element('div',
{
'styles': $extend(
this.element.getStyles('mar...
I'm stuck trying to debug a problem which only occurs on my machine. It doesn't exhibit on any of the other devs' systems, nor on our production test server. I've tried pretty much everything I can think of short of completely wiping my hard disk and starting from scratch, or sneaking into the office in the middle of the night to swap my...
In the past, perhaps versions of Visual Studio prior to the 2008 that I am using now, I would do something like this in my VB.NET code:
System.Diagnostics.Debug.WriteLine("Message")
..and the output would go to the output window.
Now it doesn't. Something must first apparently be enabled.
If this involves "attaching a debugger", pl...
I am trying to trouble shoot a JUnit. In the source code, I have set break point in two places: 1) in a line where a static member is initialized 2) the first line of one of the test cases.
The debugger stops in the static field initializing line. But it doesn't stop in the test case. No matter where I set the break point in the test ca...
I have a project for Mac OS X 10.5 that I'm building on 10.6 using Xcode 3.2. When I use GCC 4.2 for Debug build and hit a breakpoint, Xcode debugger displays local variable information normally. If I choose LLVM GCC 4.2 or Clang LLVM, when I hit breakpoint, local symbols are not available, and GDB says No symbol 'self' in current contex...
Using Visual Studio 2008 (Tried Team Edition and Professional), I have a web service app, that when I stop debugging the FireFox Browser Tab remains open.
How can I change the behaviour of VS / Firefox to close this window when the debugging is stopped?
...