Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am having an issue when I try to attach the Xcode debugger to the active Fusion 360 process on macOS. I am following the instructions on the documentation, i.e. follow Debug -> Attach to Process -> select Fusion 360.
The following is what I see on Xcode after it fails to attach to the Fusion 360 process
Could not attach to pid : “45751”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: attach failed (Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries, when the attach failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)
User Info: {
DVTErrorCreationDateKey = "2023-04-07 20:50:41 +0000";
DVTRadarComponentKey = 855031;
IDERunOperationFailingWorker = DBGLLDBLauncher;
RawUnderlyingErrorMessage = "attach failed (Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries, when the attach failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)";
}
--
Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
"device_model" = "MacBookPro15,2";
"device_osBuild" = "13.3 (22E252)";
"device_platform" = "com.apple.platform.macosx";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = "x86_64";
"operation_duration_ms" = 171;
"operation_errorCode" = 3;
"operation_errorDomain" = IDEDebugSessionErrorDomain;
"operation_errorWorker" = DBGLLDBLauncher;
"operation_name" = IDERunOperationWorkerGroup;
"param_consoleMode" = 0;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 3;
"param_destination_isProxy" = 0;
"param_destination_platform" = "com.apple.platform.macosx";
"param_diag_MainThreadChecker_stopOnIssue" = 0;
"param_diag_MallocStackLogging_enableDuringAttach" = 0;
"param_diag_MallocStackLogging_enableForXPC" = 0;
"param_diag_allowLocationSimulation" = 0;
"param_diag_checker_tpc_enable" = 0;
"param_diag_gpu_frameCapture_enable" = 0;
"param_diag_gpu_shaderValidation_enable" = 0;
"param_diag_gpu_validation_enable" = 1;
"param_diag_memoryGraphOnResourceException" = 0;
"param_diag_queueDebugging_enable" = 1;
"param_diag_runtimeProfile_generate" = 0;
"param_diag_sanitizer_asan_enable" = 0;
"param_diag_sanitizer_tsan_enable" = 0;
"param_diag_sanitizer_tsan_stopOnIssue" = 0;
"param_diag_sanitizer_ubsan_stopOnIssue" = 0;
"param_diag_showNonLocalizedStrings" = 0;
"param_diag_viewDebugging_enabled" = 1;
"param_diag_viewDebugging_insertDylibOnLaunch" = 1;
"param_install_style" = 2;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 99;
"param_launcher_substyle" = 256;
"param_runnable_appExtensionHostRunMode" = 0;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "macosx13.3";
"sdk_osVersion" = "13.3";
"sdk_variant" = macos;
}
--
System Information
macOS Version 13.3 (Build 22E252)
Xcode 14.3 (21812) (Build 14E222b)
Timestamp: 2023-04-07T13:50:41-07:00
I followed the instructions on the error message; recorded a session on the Console app and found the "debugserver" lines. As a result, I was able to pinpoint the details on the issue:
[LaunchAttach] (46575) about to task_for_pid(45751)
----
macOSTaskPolicy: (com.apple.debugserver) may not get the task control port of (Autodesk Fusion ) (pid: 45751): (Autodesk Fusion ) is hardened, (Autodesk Fusion ) doesn't have get-task-allow, (com.apple.debugserver) is a declared debugger(com.apple.debugserver) is not a declared read-only debugger
----
error: [LaunchAttach] MachTask::TaskPortForProcessID task_for_pid(45751) failed: ::task_for_pid ( target_tport = 0x0203, pid = 45751, &task ) => err = 0x00000005 ((os/kern) failure)
----
skipping details here, but in summary, it throws an exception and logs the previously shared message
I'd be happy if you had some suggestions on how to fix this issue.
Solved! Go to Solution.