ocamlearlybird icon indicating copy to clipboard operation
ocamlearlybird copied to clipboard

May I ask if the author can update the support for VSCode conditional breakpoints?

Open EnthusiasticZ opened this issue 4 months ago • 1 comments

My project urgently needs support for conditional breakpoint functionality, but it is difficult for me to modify your code based on my current abilities. Please update the support for conditional breakpoint functionality. Thank you very much!

EnthusiasticZ avatar Sep 23 '25 05:09 EnthusiasticZ

This would require the ability to evaluate expressions on the fly, which isn't currently even supported outside of breakpoints (#39).

Actually, ocamldebug itself has very limited syntax for evaluation at all: https://ocaml.org/manual/5.3/debugger.html#s%3Adebugger-examining-values. It can basically just access values of variables, not perform any operations on them (e.g. a conditional expression).

My project urgently needs support for conditional breakpoint functionality, but it is difficult for me to modify your code based on my current abilities.

If it's so urgent, then just put the condition in the code itself as an if and put a normal (unconditional) breakpoint into its then branch. That requires no modification of earlybird.

sim642 avatar Sep 23 '25 06:09 sim642