Modifies the debug source function so that it automatically passes a file through knitr::purl if it is rmd. Relies on unmodified line numbers in the output. This seems to work for very "vanilla" rmd files but fails e.g. if the rmd file contains code blocks from other languages. This might be solved by matching parsed lines to actual lines in the source file.
Addresses https://github.com/ManuelHentschel/VSCode-R-Debugger/issues/153.
Modifies the debug source function so that it automatically passes a file through
knitr::purl
if it is rmd. Relies on unmodified line numbers in the output. This seems to work for very "vanilla" rmd files but fails e.g. if the rmd file contains code blocks from other languages. This might be solved by matching parsed lines to actual lines in the source file.