Ouch - that's a new one for me, breakpoint conditionals with side effect .. e.g. `appid = 3830` when I should have typed `appid == 3830`.
Conversation
Notices
-
Embed this notice
TTimo (ttimo@mastodon.social)'s status on Thursday, 07-Dec-2023 08:37:42 JST TTimo - Haelwenn /элвэн/ :triskell: likes this.
-
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Thursday, 07-Dec-2023 08:38:36 JST Haelwenn /элвэн/ :triskell: @TTimo Oh dear, this ought to trigger at least a warning as assignment specially in a debugger ought to be explicit. -
Embed this notice
TTimo (ttimo@mastodon.social)'s status on Thursday, 07-Dec-2023 08:39:21 JST TTimo @Cheeseness I also found that the conditionals are not necessarily evaluated on the line where you set the breakpoint .. it's a debug build but does have some minimum levels of optimization enabled.
-
Embed this notice
Cheeseness (cheeseness@mastodon.social)'s status on Thursday, 07-Dec-2023 08:39:21 JST Cheeseness @TTimo How many times did I go to bed exhausted, questioning my sanity only to find things behaving fine in the morning =_=
Haelwenn /элвэн/ :triskell: likes this. -
Embed this notice
Cheeseness (cheeseness@mastodon.social)'s status on Thursday, 07-Dec-2023 08:39:22 JST Cheeseness @TTimo Oh wow. That's new to me too. I'm sitting here thinking about how often I mistype and accidentally make a comparison an assignment in my code, and how I *must* have done this at some point without realising.
-
Embed this notice
TTimo (ttimo@mastodon.social)'s status on Thursday, 07-Dec-2023 08:39:22 JST TTimo @Cheeseness right! It's pretty vicious.
-
Embed this notice
TTimo (ttimo@mastodon.social)'s status on Thursday, 07-Dec-2023 08:39:23 JST TTimo I was getting *very* confused.