is it possible to set break points programmaticall...
# announcements
e
is it possible to set break points programmatically?
d
As far as I know this is not possible, however you can make your own
Debug.breakpoint
and just put a breakpoint in that method and call it from wherever.
l
intellij also has conditional break points
depending on what you mean by programmatically
e
Pity, this is something possible in cpp
Yeah, I know the conditional ones, but I mean in the code itself
l
gotcha, yeah i’d do what @diesieben07 is saying then
s
@elect Are you talking about Android or another environment?
e
desktop
I saw android has something cool
s
Ah.. yep. Android as an API that will pause/break your code and waits for the debugger to get attached, and resume/continue after it gets attached.