Skip to content

Debugging Sandboxed Processes on OSX

Gregg Miskelly edited this page May 21, 2021 · 2 revisions

The debugger has basic support for attaching to processes that load CoreCLR in a sandbox. Note that this workflow is subject to change in the future.

To tell the debugger that your application is loaded in a sandbox, you need to drop a .json file next to your application's executable. It should have the same name as your application with an added .coreclr-debug-config.json. The content of this file is as follows:

{
  "applicationGroupId" : "<value-here>" 
} 

Notes:

  1. This will work in both Visual Studio and VS Code
  2. Comments are NOT supported
  3. The file must be UTF-8 encoded. A BOM is allowed but not required.
Clone this wiki locally