Home

Visual Studio conditional breakpoint not working

Niedrige Preise, Riesen-Auswahl. Kostenlose Lieferung möglic Original Microsoft Visual Studio blitzschnell & sicher erhalten. Software direkt kaufen, downloaden & Produkt-Key einlösen. 2 Jahre Geld-Zurück-Garantie As a last resort, if you need to create an advanced condition that isn't possible through conditional breakpoints, you can use custom code to do it. You could write a condition in your code and if the condition is met, call the DebugBreak function. Of course, it needs to be recompiled every time you need to make a change For use in Visual Studio, this has been answered here. In particular, the string provided in OBWANDO's answer can be used to set the break point condition. Note, however, that it is a bit klugy. You will receive a warning message when the breakpoint is hit even though the debugger has stopped

Let's add a breakpoint on line 40 that only causes the debugger to pause 0:30. when the number of songs is greater than 0. 0:34. Or right-click on the breakpoint and then click Conditions here. 0:37. Here we'll type songs.Count > 0. 0:40. Conditional breakpoints have a white plus and a red dot. 0:48 Conditional breakpoints allow setting conditions which dictate when the debugger will actually break and when it will skip over the breakpoint. Setting a condition can take on a number of forms. Breaking when a variable takes on a specific value. Breaking when a variable changes. Breaking when a line of code has been hit a certain number of times How to use conditional breakpoints in Visual Studio In my case I was using Visual Studio 2013, NUnit 2.6.4, and attaching a debugger to a unit test session, and I was getting a similar message: The condition for a breakpoint failed to execute. The condition was 'type.Name.Contains(FooBar)'

Add a conditional breakpoint so it will only break in the specified conditional; This is the closest of what you want, and have no practical difference on setting the break point on only one part of the expression, other than the full line being marked in VS You need to setup a breakpoint filter. Right click on the breakpoint and select the Filter option. It will present a dialog that allows you to filter the breakpoint to specific thread ids, thread names, process ids, process names or even machine names and it will successfully break. But for the generic, I'm not sure what the type T is, or what the syntax is to properly set the Function Breakpoint, and it's a third party DLL, so I can't just open the code and click to create the breakpoint. I have tried. MyCustom.SpecialNS.SomeGenericConditionClass.Execute an Even I copy your this code into a new project and build it, then set the breakpoint in WinDBG, it always works. You also can use the x command to list out the function names, and then copy the function name directly form the result and set the breakpoint through bp command

Visual Studio C - bei Amazon

  1. Breakpoint :A breakpoint is a signal that tells the debugger to temporarily suspend execution of your program at a certain point. When execution is suspended..
  2. Hello Friends,In this tutorial video i am showing the usage of conditional breakpoints. It is very useful in debugging the code when particular expression ev..
  3. Check out some of the standard techniques to save yourself time debugging. :)Let me know if you'd like the video in higher quality.Find more Tips and Tricks.
  4. The title of the question pretty much says it all: in Visual Studio 2019, how do I set a conditional breakpoint that calls Math.Abs()? Eg. Math.Abs( x ) > 0 What I have tried: I have tried prefixing the call, like this: System.Math.Abs( x ) > 0 I've also tried searching for an answer but came up blank
  5. To add a function point, use the Visual Studio menu to go to Debug→New Breakpoint→Function Breakpoint. 5. Selecting this will show a dialog where you can specify the function name (qualifying it as you require), and the language to which the breakpoint applies. You can also specify conditions and actions as with any other breakpoint

Microsoft Visual Studio - Ihr Experte für Lizenzprodukt

VIsual studio 2015 Change progress bar color in vb

Understand Conditional Breakpoints in C++ -- Visual Studio

Set a breakpoint at a line in your code. Right click the breakpoint and then click on Hit Count. You can also go to Debug -> Windows -> Breakpoints and right click on the breakpoint that was just created and select Hit Count. In the dialog that pops up, you can choose from four ways of controlling the breakpoint based on its hit count A breakpoint is a special marker in your code that is active when executing the program whilst using the Visual Studio debugger. When the marker is reached it causes the program to pause, changing the execution mode to break mode. You can then step through the code line-by-line using the Visual Studio debugging tools, whilst monitoring the. To set a function breakpoint, use one of the following methods: From the Visual Studio Breakpointswindow, select New> Break at Function. From the Visual Studio Debugmenu, select New Breakpoint> Break at Function. From the CUDA Infowindow, select the Functionspage from the drop-down menu Hover over the breakpoint and see the details: Run the application and see the value of variable 'i', when the breakpoint is hit. So here when the value of i becomes 499 (starting from 0), it is iterating the 500th record and the breakpoint gets hit. So set the break point and enjoy the debugging!!

So let's make it conditional. Simply put your mouse on the breakpoint, right click and select ' Condition '. This will open up a window where we can define a condition to hit the breakpoint, only when the condition is met. Even you get the intellisense help for it. See how the color of the breakpoint changes with a plus sign on it You can right-click on a breakpoint and set conditions for when the breakpoint will actually stop execution. My code setting the string will execute all 10 times. But if I set my Condition breakpoint inside Visual Studio (not in code) to stop when i==3 and i==7 then it will iterate through the loop and only break when i is 3 and when i is 7 This is a feature in Visual Studio Pro and may not be in the Express edition. You can right-click on a breakpoint and set conditions for when the breakpoint will actually stop execution. My code setting the string will execute all 10 times Hello all. At long last, I have found it necessary to use one of ComposerXE's features that's supposed to let you set a breakpoint and run until some variable reaches a set value. In this case, the variable is an integer. Ideally, I'd like to run to a breakpoint until a variable in that scoping unit reaches some value, and then pause, allowing me to take over and then run debug on my own (e.g. isidorn commented on Dec 23, 2015. We need a nice icon to distinguish conditional breakpoints from regular ones. Some ideas: Use a different color, for instance gold (chrome debugger does something similar) Add a small question mark to the corner of the current breakpoint.svg. In both cases we would need one for light theme and one for dark theme

c++ - How to set conditional breakpoint based on string

Conditional breakpoints a a feature of VIsual Studio. Not much use if you are debugging ER, but pretty useful if you are debugging a 'C' bsfn. I have used them whan a bsfn is called many times eg when a UBE fails after 999 rows processed. They are accessed of the Edit->Breakpoints menu option. Regards Mik I was a bit puzzled to find out how many people overlook the conditional breakpoints in Visual Studio. They usually settle with just setting a regular breakpoint, and then F5-ing their way until the program enters a specific state they are after Conditional breakpoint fails to evaluate a string property #2683. Closed dubeg opened this issue Nov 14, 2018 · 6 comments Closed Microsoft Visual Studio Enterprise 2019 Version 16.4.5. Copy link Member JoeRobich commented Feb 11, 2020. Hi @. To set a function breakpoint, use one of the following methods: From the Visual Studio Breakpoints window, select New > Break at Function. From the Visual Studio Debug menu, select New Breakpoint > Break at Function. From the CUDA Info window, select the Functions page from the drop-down menu. From here, you can right-click on a function row to. Hello, As Luis said, that option it is not available for VWD Express. If you explore the Beta Doc you'll find in the followinf link about How specify a Breakpoint ConditionThis feature is found in Visual C++ Express Edition and Visual Studio Professional, Enterprise, and Enterprise Architect Editions only

Microsoft Visual Studio 2013 Tutorial - YouTube

Conditional Breakpoints (How To) Debugging in Visual

  1. 9. Conditional breakpoints. If you're trying to reproduce a rare event and getting too many false positives with your breakpoints, you can easily make them conditional! Simply specify the condition for a breakpoint and Visual Studio will automatically ignore the breakpoint when the condition does not hold
  2. Hi @testforstephen, just found out when this happens, it happens only when the conditional breakpoint is used in a part of code that runs in parallel, so when the breakpoint needs to be evaluated on more parallel threads.For example, in this case, all threads that run that code stop on the conditional breakpoint, vscode messages that the breakpoint is not a valid boolean, but if I continue all.
  3. Here's what I did: Set a conditional break point that I knew would only hit on the thread that I was looking for. Once the breakpoint hits and you are in the thread you want, in the Visual Studio Threads window (while debugging, Debug -> Windows -> Threads), Ctrl + A (to select all threads), and then Ctrl + click the thread you are currently on. You should have all threads except the one you.
  4. ology. One allows setting breakpoints with a hit count and the other lets skipping of breakpoints for a certain count
  5. Set a breakpoint. A breakpoint is a marker that indicates where Visual Studio should suspend your running code so you can take a look at the values of variables, or the behavior of memory, or whether or not a branch of code is getting run. It is the most basic feature in debugging. To set the breakpoint, click in the gutter to the left of the doWork function call (or select the line of code.
  6. DBX vs. Visual Studio and WinDbg: Part 2D, Conditional Breakpoints. by.
  7. Export breakpoints. Here we create two breakpoints, one regular and one conditional. Then we export them to a breakpoints.json file in the .vscode folder. You access the breakpointio-export command by hitting control-shift-p on windows or command-shift-p on mac. We have reset the breakpoints in the above example but kept the breakpoints.json

Advanced Debugging Techniques with Conditional Breakpoints

From the Visual Studio Breakpoints window, select New > Break at Function. From the Visual Studio Debug menu, select New Breakpoint > Break at Function. From the CUDA Info window, select the Functions page from the drop-down menu. From here, you can right-click on a function row to set a breakpoint There is a very useful feature in Visual Studio allowing you to set a conditional breakpoint on a line of code. The breakpoint will be triggered only when the condition is met. To create a conditional breakpoint, just add a standard breakpoint, then move the mouse over it and click on the gear icon

Conditional breakpoint in Visual Studio - YouTub

  1. Conditional breakpoints. Conditional breakpoints enable you to break execution on a particular line of code only when the value of the condition is true. To set a conditional breakpoint, right-click on an existing breakpoint and select Edit Breakpoint. This opens a small peek window where you can enter the condition that must evaluate to true.
  2. To set a conditional breakpoint, right-click the area to the left of the line on which you wish to pause execution, select Add Conditional Breakpoint, and specify either a JavaScript expression (for example, foo = bar) or execution count that defines the condition under which you want to pause execution
  3. I get this message The debugger's worker process (msvsmon.exe) unexpectedly exited. Debugging will be aborted. every time I add a conditional breakpoint. When I remove the conditional breakpoint it is fine. I am using the latest IVF. Any workaround for this problem that will allow me to use cond..
  4. They can be set by clicking in the margin of the code editor, or by right-clicking on a line of code and selecting Breakpoint, Insert Breakpoint, or simply by pressing F9 (This is a typical shortcut; check the Debug, Toggle breakpoint in the settings menu). PHP Tools also supports advanced Visual Studio breakpoints such as conditional breakpoints
  5. After our breakpoint triggers in Visual Studio 2012 you can see in the Watch window the CallFromBreakpoint method executed and changed the state of a, the object itself. Running the exact same program in Visual Studio 2013 with the same conditional breakpoint set shows a different story
Visual Studio Code Mac 1

c# - Error when using a conditional breakpoint on System

  1. Join Joe Marini for an in-depth discussion in this video, Conditional breakpoints, part of Visual Studio Code for Python Developers
  2. Extension for Visual Studio Code - Add breakpoint support for fortra

Can I set a breakpoint in an inline if in Visual Studio

Visual Studio's conditional breakpoint capability provides a much, much easier way to handle this. Conditional breakpoints allow you to break in the debugger only if some specific condition that you specify is met. They help you avoid having to manually inspect/resume your application, and can make the whole debugging process a lot less. Nsight Visual Studio Edition 6.0.0.18227. GPU Quadro P2000 in TCC mode. When running CUDA Debugging (Next-Gen), sometimes the debugger will stop in a kernel at a position where there is no breakpoint. Of course this destroys any ability to debug (e.g. if a thread conditional breakpoint is set, the phantom breakpoint stops on any thread)

multithreading - Can I set a breakpoint in Visual Studio

There are two types of memory breakpoints, read and write. Currently visual studio supports only write breakpoints - and calls them data breakpoints. There are a few ways to set one up. After you start a debugging session, you can (1) Click Debu.. Set a breakpoint. For more information, see Using breakpoints. Pause and inspect your app when it reaches a specific state. Try a conditional breakpoint to control where and when a breakpoint gets activated by using conditional logic. For more information, see Breakpoint conditions. Pause code only when a specific object's property or value. However, when debugging a complex behavior it is convenient to observe and even debug the logic nested in black-boxes referenced. This is why since version 16.5 Visual Studio 2019 can generate some source code from compiled assemblies. Such source code is then debuggable. This feature is based on the OSS project ILSpy

Add breakpoint descriptions If you have many breakpoints in your project, you can add descriptions to breakpoints for ease of search. To do this, right-click a breakpoint in the Breakpoints dialog Ctrl+Shift+F8 and select Edit description from the menu. Now when you start typing the breakpoint name, it gets the focus. Group breakpoints 12 Visual Studio Debugging Productivity Tips. In this post we assume the the reader knows the basics of debugging with Visual Studio: F5 to start running with the debugger. F9 set breakpoint on the current line. F10 run till next breakpoint. F5 to resume the execution from a stopped program debugged. F11 step into the function (if the.

In version 2020.3.0, Visual Studio breakpoint hit count support was introduced.As with normal conditional breakpoints, both the Visual Studio debugger and the NVIDIA debuggers take an increasing amount of time to run as the number of threads and iterations evaluating the breakpoint condition and count increase Conditional Breakpoint. A condition can be attached to a breakpoint to break only in a certain scenario. In the animation below we define the breakpoint with the condition I > 6 within the loop.

Set normal Breakpoint Setting the breakpoint in an application is very simple. You can hit the F9 key or you can click on the left most border in Visual Studio. It will keep the breakpoint on the particular line. After setting the breakpoint, Visual Studio indicates the particular line with the Red color preceded with a dot like below To get started with debugging, we need to create a configuration. Click on the Debug Icon on the left pane of Visual Studio Code. Next, click on the gear Icon to create a configuration. A configuration file is create under .vscode/launch.json with the contents shown above. Change the configurations program to point to the main.go file Nsight Visual Studio Code Edition Overview | Documentation | Forum | Code Samples. Nsight Visual Studio Code edition is an extension for Visual Studio Code that provides support for CUDA development, including features such as Intellisense, debugging, debugger views, and productivity enhancements. Benefits. Higher Productivity Using smart CUDA auto-code completion features improves the overall.

NVIDIA® Nsight™ Visual Studio Edition 5.6 is now available for download in the NVIDIA Registered Developer Program.. This release extends support to the latest Volta GPUs and Win10 RS4.The Graphics Debugger adds .NET application and Vulkan 1.1 support as well as Range Profiler improvements. The Compute tools support the new CUDA 9.2 Toolkit, with the Next-Gen Debugger improving expression. Conditional Breakpoints in Visual Studio This is the concept of Breakpoint Conditions. As the name itself suggests, it is setting the breakpoints which are hit, only when certain condition is met. It's easy to implement as well. Create a new application and set a normal breakpoint Conditional breakpoints. When you set a breakpoint, you can make it conditional by setting these parameters in the Optional parameters page of any breakpoint wizard: Breakpoints can be thread-specific. You can specify whether the breakpoint applies to all threads (the default) or only to one ( n=one) specific thread

Unity Visual Studio 2017 Setup & Tools - YouTube

Using NT7 and Visual Studio Community 2013. I'm having trouble with conditional breakpoints. Hit count breakpoints work fine, so I think I must be entering the condition incorrectly. For example, if I'm trying to break execution when CurrentBar is 100, I've tried the following: CurrentBar == 100 (gets executed through without stopping. Visual Studio Tips - Breakpoints # vstips # csharp. Jeremy Hutchinson. Jeremy Hutchinson. You can also make the breakpoint conditional based on the value of a variable or any boolean expression (yes, you can use the No Side Effects formatter). This can be helpful if you want to break when the value of a variable is a certain value Conditional breakpoints can also be used to halt code execution according to the number of times a breakpoint has been hit. ToDo: Place a conditional breakpoint inside SW_get_state() to halt execution for debugging at every 5 th edge count, but only if the edge was rising, and check its functionality Using conditional expressions. Conditional expressions are often useful if you want to hit a breakpoint on some conditions. For example, you would like to debug a for statement when a specific index count is reached or when an item in a collection meets a specific value.. To add a conditional expression to a breakpoint inside Visual Studio 2017, select the Conditions checkbox from the.

debugging - Set a Function Breakpoint on a C# Generic

  1. e the count of breakpoint hits on a specific line and based on that, break the debugger. This is useful - Selection from Mastering Visual Studio 2017 [Book
  2. Visual Studio having great features to set breakpoint in multiple functions at same time. For most of the time, to set a breakpoint with in a function you just put a breakpoint in the first line of the function. Now, assume you have 10 different overloaded methods or you have same function in different project
  3. How is it possible to add a watchpoint in Visual Studio. A watchpoint is basically a conditional breakpoint that is _not tied to a codeline_. What I want to be able to do is to break whenever someone changes a particluar variable. There seems to be two options: Watch a variable and see for myself if/when it ever changes
  4. Conditional Breakpoint. A condition can be attached to a breakpoint to break only in a certain scenario. In the animation below we define the breakpoint with the condition I > 6 within the loop.
  5. So let's make it conditional. Simply put your mouse on the breakpoint, right-click and select Condition. This will open up a window where we can define a condition to hit the breakpoint only when the condition is met. You can even get the intelligence (Intellisense?) help for it. See how the color of the breakpoint changes with a plus sign on it
Javascript - vscode-docs1

Consider how threads grab focus in the CUDA Debugger. For example, the debugger can change focus to another thread without notifying you. If the focus thread is not at a breakpoint, and a different thread hits a data breakpoint, conditional breakpoint, or an unconditional breakpoint, the CUDA Debugger changes the current focus thread While the conditional breakpoint is more elegant, if you want to be a caveman about it, you can also just code in the conditions for which you want to breakpoint into a conditional `if` and breakpoint on a simple print statement inside it. e.g

C#, Modern Flat UI Dashboard Windows Form Visual Studio

visual studio 2017 version 15.9 windows 10.0 visual studio pavel.holecek reported Feb 15 at 08:29 AM Show comments Visual Studio Code .10.10 released today with many new features including indentation-based code folding and UI support for configuring function breakpoints. In this blog post, I'll show you a few new features what we have planned for the 0.5.0 release of the PowerShell extension for Visual Studio Code, which should be available towards the en

Since conditional breakpoints are based on evaluating an expression, you can use an expression with side effects, like, say, logging. Breakpoint Condition When the breakpoint location is reached, the expression is evaluated and the breakpoint is hit only if the expression is true or has changed Conditional breakpoint Visual Studio. Use breakpoints in the debugger, To create a conditional breakpoint, just add a standard breakpoint, then move the mouse over it and click on the gear icon. Adding a conditional Set a breakpoint. Right-Click over the breakpoint, and in the popup menu you select an option that suites you Use Conditional Breakpoints with Methods Return Value in Visual Studio 2015 Abhijit Jana 6 years ago Conditional Breakpoint in Visual Studio is a great way to optimize the debugging time and pause the execution only whe

how to set breakpoint for overwrriten operator with [Windbg

F11 : Step into. Shift + F11 : Step out. Control + F10 : Run to cursor. Control + Shift + F10 : Set next statement. Alt + Num * : See current statement. Enable Edit & continue in Tools > Options > Debugging. Other interesting settings: Step over properties and operators (Managed only The conditional breakpoint in the managed COBOL never gets triggered. I can examine the content of the variable at the following regular breakpoint and see that it has been set to the conditional breakpoint's specified value, but apparently the conditional breakpoint can't see the value or can't signal for a stop

C# tips and tricks 12 - How to set Conditional Break point

Visual studio provides various features while in debugging mode. Whenever a breakpoint is hit, you can go to menu bar > debug > windows as shown in below screenshot. These are plenty, but we will discuss only about few which are commonly used. Let's get a brief idea about what are these and why they are used Conditional Breakpoint Click Debug > Breakpoint > Set Advanced . Right-click a breakpoint in the editor or in the Breakpoints window and click Condition To get started with debugging, we need to create a configuration. Click on the Debug Icon on the left pane of Visual Studio Code. Next, click on the gear Icon to create a configuration. A configuration file is create under .vscode/launch.json with the contents shown above. Change the configurations program to point to the main.go file (gdb) break main Breakpoint 1 at 0x80483ed: file test.cpp, line 5. (gdb) break 6 Breakpoint 2 at 0x80483f7: file test.cpp, line 6. (gdb) tbreak 7 Temporary breakpoint 3 at 0x804841c: file test.cpp, line 7. (gdb) info breakpoints Num Type Disp Enb Address What 1 breakpoint keep y 0x080483ed in main() at test.cpp:5 2 breakpoint keep y 0x080483f7 in main() at test.cpp:6 3 breakpoint del y. Visual Studio Breakpoints allow you to put conditional breakpoint. If and only if that condition is satisfied, the debugger wil

Visual Studio Code User InterfaceCrea una clase para Insertar, Consultar, Eliminar y

How to Add Conditional Breakpoint In Visual Studio Code

Once a breakpoint is defined, it will appear enabled (as filled red circle left to the current row if that line is a valid statement to put a breakpoint) or disabled (as a non-filled red circle left to the current row if that row is not valid to put a breakpoint). To define conditional breakpoints, after creating the breakpoint, right click in. Select this checkbox to make the selected breakpoint conditional, and specify a condition in the adjacent text field. Press Shift+Enter to open the multiline editor. Log: Select these checkboxes if you want to log the breakpoint hit in the debugger output. You can choose either to log the fact the breakpoint was hit or log the full stack trace. One of the interesting features w.r.t. Visual Studio 2015 breakpoint configuration is that if a breakpoint is accidentally deleted , it could again be applied by using Ctrl+Z. A breakpoint condition with the Hit Count can be used anytime if we need to hit the breakpoint at specific hit count or at some particular interval of hits Toggle breakpoints by clicking on the editor margin. Right-click to add conditional breakpoints. From here we can set a breakpoint. Previous investigation had shown that the bug was likely coming. Switch back to Visual Studio Code and you will see the debugger has stopped at the conditional breakpoint. Press F5 to continue running the code. Switch back to your web browser to view the page. Interactive Debug Console The Visual Studio Code Debug Console will give you access to the Python REPL (Read, Evaluate, Print Loop)

JavaScript Programming with Visual Studio Code

Visual Studio.NET Debugging - Conditional breakpoint ..

The breakpoint is set on a user-defined building block, and activated by default. When a message reaches the breakpoint building block, Studio stops flow execution and displays the contents of the message in the Mule Debugger View. Conditional. The breakpoint is activated only if a user-defined condition evaluates to true. Exceptio The Visual Studio debugger is an enchanting creature that can save you loads of time while finding and fixing issues in your application. It is bursting with tools that can make debugging easier if you know they exist, and where to find them! Let's look at 7 more lesser-known goodies you can use to #SuperChargeYourDebugging. 1 So I set a conditional breakpoint and look for a 'width' value that might point to my special character: width > usual_char_width. With that, the result is that I now only have to check two or three elements, so I can quickly investigate the problem Visual Studio.NET: Cool Debugging Tricks. Tip: Call Stack Window Debugging: Many developers are not aware that you can set breakpoints in the Call Stack Window (except when doing SQL debugging). Just highlight the call you want to stop on and either press F9 or right-click on the line and select Insert Breakpoint from the shortcut menu

[Solved] In visual studio 2019, how do I set a conditional

Conditional breakpoints. A more advanced technology allows the setting of conditional breakpoints - the execution of code is only stopped at a breakpoint if a condition is fulfilled. TwinCAT offers the implementation of a conditional breakpoint as part of the Visual Studio Integration Once Sierra Chart program execution is halted by a breakpoint there are 3 basic commands to continue execution from this point. Step Over: can be accessed from the debug menu in visual studio or by pressing f10 on the keyboard.This command executes the current line at which the debugger is currently on and will move to the next line Visual Studio Conditional Breakpoint Most of the few people who reach this point will stop here, having the same question in their mind, why no intellisense? The answer: Ctrl + Space, if you press the magic key combination when you type your condition, you will bring up intellisens Nsight Visual Studio Edition. colinrei February 21, 2021, 8:47pm . # Visual Studio is a complex development environment, which unfortunately leads to some of its cooler features being harder to find. I hope you find this introduction to breakpoint superpowers useful, if you do or if you have more Visual Studio debugging tips, I'd love to hear from you in the comments

Tracepoints, Conditional Breakpoints, and Function

That is the dialog box for a new breakpoint. I have used it, with inconsistent results, to break when a value changes. To set a breakpoint when an array element takes on a certain value I use the Breakpoint Condition dialog box. I'm trying to attach a screenshot. I realize the inconsistent behavior over the years could be caused by Visual Studio Debugging Go in Visual Studio Code March 1, 2020. Long ago, I have a breakpoint in the golang standard library packages text/template. Here's how the debug window looks like when on a breakpoint. You can also add conditional breakpoints by right clicking on the breakpoint and choosing Edit Breakpoint. You have to switch to the Managed Compatibility Mode to use conditional breakpoints. It's because the Revit DLLs API are using Managed C++ and this language provides its own expression evaluator. This is not supported by the current Visual Studio debug engine so you have to use the legacy one