R script brakpoints

Hi. Is there a way to implement breakpoints within functions embedded in a R script?

I’d like to query local variable values but get always “no such object” message.

Hi,
unfortunately breakpoints are not supported by the node, but there is a button “Eval selection” in the dialog that you can use to execute the script up to a certain point only. You can also enter debugging code in-between and execute that by selecting it and clicking “Eval selection”.
Kind regards,
Alexander

Thanks by your reply, but in this case I fear it is not possible to use “Eval selection” because I need to set a breakpoint inside a function that is called by the code following it. Thank you anyway.

Hi,
What I do in such cases is to copy the code into an IDE and export the incoming table as CSV, then run the script in the IDE with breakpoints instead. Granted, it is a bit tedious, but works :slight_smile:
Kind regards,
Alexander

1 Like