mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-30 18:34:34 +01:00
Updated Developer Tips (markdown)
parent
7ae6f158de
commit
eef70c236a
@ -1,7 +1,9 @@
|
||||
### Using breakpoints
|
||||
Using debugger breakpoints can be tedious in an interactive application dealing with lots of data. Even more so as the state of the application may be so reliant on mouse and keyboard inputs. One convenient trick is filter breakpoint based on custom conditions, e.g checking for the Alt key modifier to be pressed:
|
||||
|
||||
`if (ImGui::GetIO().KeyAlt)`
|
||||
` printf(""); // Set a debugger breakpoint here!`
|
||||
```
|
||||
if (ImGui::GetIO().KeyAlt)
|
||||
printf(""); // Set a debugger breakpoint here!
|
||||
```
|
||||
|
||||
So you can setup your UI state for debugging (open windows, mouse position, active action etc.) and then only when you press ALT your breakpoint will trigger.
|
||||
|
Loading…
Reference in New Issue
Block a user