Acknowledged

bug: logs from the app are not displayed in debug console when running in "Sensor Pairing mode"

When the app runs in "sensor pairing mode", triggered by "Manage Sensors", then the standard output is not displayed in the debug console in VSC. In other words it's impossible to debug the SensorDelegate using logs.

Parents
  • For the benefit of other developers: the way to debug native pairing is:

    either run your app from VSC: Cmd+Shift+P, then "Monkey C: Launch native pairing"

    or add this configuration to .vscode/launch.json:

    {
    "type": "monkeyc",
    "request": "launch",
    "name": "Run Native Pairing",
    "runNativePairing": true,
    "stopAtLaunch": false,
    "device": "${command:GetTargetDevice}"
    }

    And then you can trigger it from Run & Debug

    When you run this way, then you see the logs in the VSC debug console.

    Thanks for  for "accidentally" discovering this configuration. It'd be nice if Garmin had something written about this in some documentation / announcement.

Comment
  • For the benefit of other developers: the way to debug native pairing is:

    either run your app from VSC: Cmd+Shift+P, then "Monkey C: Launch native pairing"

    or add this configuration to .vscode/launch.json:

    {
    "type": "monkeyc",
    "request": "launch",
    "name": "Run Native Pairing",
    "runNativePairing": true,
    "stopAtLaunch": false,
    "device": "${command:GetTargetDevice}"
    }

    And then you can trigger it from Run & Debug

    When you run this way, then you see the logs in the VSC debug console.

    Thanks for  for "accidentally" discovering this configuration. It'd be nice if Garmin had something written about this in some documentation / announcement.

Children
No Data