-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Diagnose #49 0.8.3 fails to load on Linux/Mono
- Loading branch information
Showing
4 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,3 +158,13 @@ src/libfiles | |
|
||
inst/libs/*.* | ||
inst/libs/i386/*.* | ||
|
||
*.so | ||
|
||
*.o | ||
|
||
.ionide/ | ||
|
||
mono_crash.*.json | ||
|
||
src/Makevars |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
Setting up native rClr.so debugging from vs code. | ||
|
||
`launch.json` | ||
|
||
```json | ||
{ | ||
// Adapted from debugging a native lib loaded by Python | ||
// https://code.visualstudio.com/docs/cpp/launch-json-reference | ||
// Not used as such but looking like a useful source: https://www.justinmklam.com/posts/2017/10/vscode-debugger-setup/ | ||
// Maybe: https://marketplace.visualstudio.com/items?itemName=webfreak.debug | ||
// https://stackoverflow.com/questions/31763639/how-to-prevent-gdb-from-loading-debugging-symbol-for-a-large-library | ||
// I follow the instructions in https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Using_gdb_on_wimpy_computers . May need adaptation to make it | ||
// Nope. Need to use symbolLoadInfo below, but still stuck on libc6 exception | ||
// https://gist.github.com/asroy/ca018117e5dbbf53569b696a8c89204f | ||
"name": "(gdb) Attach to R session", | ||
"type": "cppdbg", | ||
"request": "attach", | ||
// "program": "/home/per202/src/csiro/stash/water-apportionment-pk/fortran/lib/libwaa.so", | ||
"program": "/usr/local/lib/R/bin/exec/R", | ||
"processId": "${command:pickProcess}", | ||
"MIMode": "gdb", | ||
"miDebuggerPath": "gdb", | ||
// "cwd": "/home/per202/src/csiro/stash/water-apportionment-pk/fortran/lib", | ||
"additionalSOLibSearchPath": "/home/per202/.local/lib/R/3.6.2/site-library/rClr/libs", | ||
"symbolLoadInfo":{ | ||
"loadAll": false, | ||
"exceptionList": "rClr.so" | ||
}, | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for gdb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
} | ||
] | ||
} | ||
``` | ||
|
||
```bash | ||
export BUILDTYPE=Debug | ||
R CMD INSTALL --no-test-load rClr | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters