1. Problem setting Breakpoint in Unit Test
I have a project I am writing unit tests for and I am having a problem with one of the tests. I set a break point at the beginning of the test and found which statement was causing the problem. I need to run the test again so I can step into the offending statement instead of over it, but the test run now refuses to stop on the break point! What gives??
2. Can't set breakpoint - CSharp/C#
3. Setting Breakpoints for Variables
Are you looking for:
Trace.Assert (from System.Diagnostics) as in:
private void button1_Click(object sender, System.EventArgs e)
{
int iVar = 4;
Trace.Assert(iVar > 4, "This integer is less than five");
}
On Thu, 04 Mar 2004 11:14:59 -0500, Mortimer Schnurd
< XXXX@XXXXX.COM > wrote:
>Hi folks,
>I am just learning C# and need some help with setting debugger
>breakpoints. In VB 6, I could easily set breakpoints on variables
>which either change in value or evaluate to a specific value. It
>appears C# does not allow you to do this (at least not easily). This
>functionality was extremely useful in many instances of VB 6
>debugging.
>
>Is there some way in which I can emulate this same functionality in
>C#? I've tried various methods including throwing an exception base on
>an evaluation of a variable. This does allow the program to break into
>debugger at that point but does not allow you to continue.
>
>Any guidance would be appreciated.
4. Setting breakpoints in a mixed mode file?
5. Cannot set breakpoint in a certain project
Hi. Ive been using Visual C++ for two years on an application. The
application is one solution, containing 10 projects. 9 of the projects build
libraries (*.lib). I've been debugging the application for 2 years. One
thing that has been happening for several months is a genuine mystery:
I cannot set breakpoints in one of the libraries (source code). I can
create the breakpoint in the source code editor, but when I attach to the
application, I get a warning message:
"he following breakpoint cannot be set
At MyFile.cpp, line 123
The Common Language Runtime was unable to set the breakpoint
And the breakpoint, indeed, does not function. This problem holds for every
function in this one library (project). But only this one project: all
other projects in the solution have no problem with breakpoints.
Another clue: When I am stepping lines in the debugger, and I step down
into any function in the library with the problem, Visual C++ shows the
source code, and kind of steps thru it, but it takes several steps to move
one source code line, almost as if each "step" steps one line of assembly.
The variables "watch" display does not work for this one library, either.
All this is compiled in the Debug configuration, not Release.
The mysterious thing is that the problem is only with the one Library
(project) in this solution: My other 8 libraries work fine.
So my question is: Does anyone have any ideas what would cause Visual C++
to be unable to set a breakpoint (at attach time) in one particular project
(library) when all other projects in the solution have no problem.
Thanks in advance for any help.
6. Can not set breakpoint in VC++ 6.0
7. How to set breakpoint in intrinsic function?
Profiling my code shows lots of time spent in an intrinsic function, EXP(). I can't actually find any instances of this function within the source code I've written, so I think that another intrinsic function is actually calling EXP(). So I can't set a breakpoint in the normal manner of just clicking on the line. I've tried to use the advanced syntax, but I don't know the source name for the intrinsic function. Any other ideas how I can set a breakpoint for the function EXP(), or at least figure out where it's being called from my code? I'm using Compaq Visual Fortran inside of the Visual Developer Studio. Since the HP merger, support for this compiler is poor, but I figure that I'm really asking a question about the Dev Studio anyway.