I am debugging an ocaml program with
M-x camldebug while adding comments to the source code and the debugger shows incorrect positions in my tuareg/merlin window. It shows the positions as present in the original source file that do not match the edited file.
As a workaround, I would like to have my file opened in one buffer (the one I'm using with the debugger), and have another buffer with the same file opened that is not synchonized with the first one, i.e., as if it was open in a separate process and without changes in one buffer appearing in the other. Then, I'd just save my files after I'm done debugging.
C-x 4 c, but that still makes changes in one buffer appear in the other. I have an obvious workaround of copying the file to scratch to edit it and then back again, but I am searching for a cleaner way.