Skip to content

Unable to debug C# code from Visual Studio while called from R through rClr #32

@tvidvei

Description

@tvidvei

I'm trying to debug C#-methods that are called from R through rClr. I have set the VS-project to start Rscript.exe (Properties | Debug | Start external program), with the filepath to my R-script as Command-line argument. When I press F5 in VS, Rscript.exe runs the R-script as expected, but the execution doesn't stop at my breakpoints. When I redirect the output from the R-session to a file (by adding "> output.tmp" to the R-script file in the command-line argument field), I can see that my C#-method is called and returns the expected result. Why doesn't the execution stop at the breakpoints?

For details and an example: Se my question at StackOverflow: https://stackoverflow.com/questions/46038019/how-to-debug-c-sharp-code-called-from-r-by-rclr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions